| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 42 |
| Technical Name |
sale_pricelist_restriction |
| License | LGPL-3 |
| Website | http://yuab.odoo@gmail.com |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 42 |
| Technical Name |
sale_pricelist_restriction |
| License | LGPL-3 |
| Website | http://yuab.odoo@gmail.com |
| Versions | 17.0 18.0 19.0 |
Sale Pricelist Restriction
Lock pricelist changes on Sale Orders behind a per-user permission — only users explicitly granted access may override the customer's assigned pricelist.
Odoo 19Enterprise Community
Note: In Odoo 19, the pricelist field on Sale Orders is only active when Pricelists is enabled under Sales → Configuration → Settings. This module detects that setting automatically and applies the restriction only when relevant.
Overview
This module prevents unauthorized pricelist changes on Sale Orders. By default, all sales users are restricted from overriding the pricelist assigned to a customer. Access is granted individually via the Change Pricelist on Sale Orders permission on each user's profile, giving managers precise control over who can adjust pricing. Website, public, and system contexts are always permitted through automatically. Fully compatible with Odoo 19's updated user API and optional pricelists feature.
Key Features
Per-User Permission
The Change Pricelist on Sale Orders permission on the user's profile grants or revokes the ability to override the pricelist on a sale order
Create & Write Protected
The restriction is enforced on both order creation and subsequent edits
Website & System Safe
Public users, website context, and automated system processes are always allowed through without restriction
Pricelists Setting Aware
Automatically detects whether the Pricelists feature is enabled in Sales Settings and skips all checks when it is not
How It Works
| 1 | Navigate to Settings → Users & Companies → Users, open a user's form, and go to the Sales tab |
| 2 | Enable the Change Pricelist on Sale Orders permission to grant that user access to override pricelists on sale orders |
| 3 | Users without the Change Pricelist on Sale Orders permission will have the pricelist field locked to the customer's assigned default |
| 4 | Any attempt to set a different pricelist without the permission raises a clear Access Error |
Screenshots
Pricelist Settings
Access Warning
Installation
| 1 | Copy this module to your Odoo 19 addons directory |
| 2 | Update the apps list |
| 3 | Install Sale Pricelist Restriction from the Apps menu |
Developed by Yunus Abdulaziz — yuab.odoo@gmail.com
Licensed under LGPL-3
Please log in to comment on this module