Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Sales Management
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-07-25 11:12:25
Authors
Tecnativa, Odoo Community Association (OCA)
Maintainers
Tecnativa, Odoo Community Association (OCA)
Committers
Pedro M. Baeza, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds a *Final Price* field to sale order lines, holding the unit
price once the discount is applied.

Setting it works out the discount that turns the price coming from the pricelist
into the agreed figure, so the catalog price stays visible on the quotation and
the rebate is recorded as such.

On top of that, the unit price and the discount become read only for anyone who
is not a *Sales Administrator*: salespeople state what the customer pays, and
the system works out the discount.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (2)
  • price_edit_allowed Boolean
    compute='_compute_price_edit_allowed' help='Technical field to know whether the current user is allowed to edit the unit price and the discount of the line.'
  • price_final Float
    compute='_compute_price_final' help='Unit price once the discount is applied. Set here the price agreed with the customer and the discount will be computed accordingly, keeping the unit price given by the pricelist.' min_display_digits='Product Price' precompute=True readonly=False store=True string='Final Price'
Public methods (0)

No public methods.