Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.1
Category
Sales Management
Folder size
0.05 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
Odoo Community Association (OCA), Moduon
Maintainers
Odoo Community Association (OCA), Moduon
Committers
David Vidal, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to lock price edition based on the applied pricelist rule scope.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_view product.pricelist Inherits product.product_pricelist_view
view_order_form sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (1)
  • lock_product_prices_applied_on Selection
    help='Avoid that salesmen change prices based on this scope. Rules applied on base pricelist take into account the items of those pricelists with the rule of the pricelist applied on the sale order' selection=[('3_global', 'All products'), ('2_product_category', 'Product Category'), ('1_product', 'Product'), ('0_product_variant', 'Product Variant')] string='Lock price when rule is applied on'
Public methods (0)

No public methods.

New fields (2)
  • origin_pricelist_item_id Many2one → product.pricelist.item
    comodel_name='product.pricelist.item' compute='_compute_origin_pricelist_item_id' help='Technical field to get the base pricelist item that has the origin price calculation'
  • price_locked Boolean
    compute='_compute_price_locked' help='This flag will make the price_unit and discount readonly based on the pricelist locking criterias'
Public methods (0)

No public methods.

Loading…