Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.