Sales Exceptions An Effective and Very Useful Feature of Odoo
Today I would like to share with you how to "Create Exception Rules and how it will apply on Sales Order/ Sales order line.
Features:
- Can create exception rules from python code from front end
- Can Generate exception for sales order and Sales order line.
- Will show exception while confirming sales order.
- Can ignore the exception while confirming sale order.
Install Sale Exception Module.
![]() |
| Click on Image to enlarge |
Lets start with creating exception rules.
Go To Sales -> Configuration -> Sales -> Exception Rules
Click on create to create new rule.
![]() |
| Click on Image to enlarge |
Exception Name : Can define exception name.
Active : If active then only it will apply the rule.
Apply On : Here we can apply rule for either Sales Order or Sales order Line.
Python Code : This is the area where you can enter your python code to generate exception/Kickback.
Now, Create a sales order.
- Select the customer, Delivery Address if different,
- Select the product line to sell.
- Now, Confirm the order,
However you confirm the order, it will "Blocked in draft due to exceptions" (If zip code is not defined in delivery address- as defined in exception rule).
![]() |
| Click on Image to Enlarge |
Ignore Exceptions : If you check this mark it will ignore the exception and allows user to confirm the Sales Order.



nice one...
ReplyDeleteReally Helpful. Must Read this blog.
ReplyDeleteI always love to see more of this love this Post, thank you for sharing and I Read Your Next Post.
ReplyDeleteHire Freelancer & Contractor | Find Construction Jobs | ContractorBay
I like your post and all you impart to us is update and very educational, I might want to bookmark the page. good luck
ReplyDeleteAbout Us | Canada Marketplace for Handyman | ContractorBay