Last Sale Price
last_sale_price · OCA/sale-workflow
-
Security25/25No findings
-
Activity0/25Last human commit 140 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
SaleOrderLine— Class 'SaleOrderLine' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceSaleOrderLine— Class 'SaleOrderLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Last Sale Price
Add price, quantity and date of a product of the last time it was sold to a partner.
In order to let the salesman know if a customer already ordered a product. And to give him hint about what price he should propose. That information is shown next to the price in Sale Order's line Form.
Only Sale Orders' lines in state Confirmed and Done are considered to compute those fields.
If multiple Sale Order lines for the same partner where made on the same date for the same product, the sum of all quantity and the average price will be displayed.
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.last_sale | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (0)No public methods.