Sale Order Line Final Price
sale_order_line_final_price · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form |
sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
-
price_edit_allowedBooleancompute='_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_finalFloatcompute='_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=Truereadonly=Falsestore=Truestring='Final Price'
No public methods.