Sales Lines Cost Control
sale_line_cost_control · OCA/margin-analysis
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 89 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
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.09 MB
Module directory on disk
Code analysis
2 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
SetSaleLinePurchasePrice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcesale_margin_sale_order_line_tree— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_margin_sale_order_line_form |
sale.order.form | sale.order | form | Inherits sale_margin.sale_margin_sale_order_line |
sale_margin_sale_order_line_tree |
sale.order.form | sale.order | form | Inherits sale_margin.sale_margin_sale_order_line_form |
view_set_sale_line_purchase_price |
Set Cost | set.sale.line.purchase.price | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (1)
-
purchase_price_missingBooleancompute='_compute_purchase_price_missing'string='Missing Cost'
No public methods.
New fields (3)
-
currency_idMany2one → res.currencycomodel_name='res.currency'default=<expr>required=Truestring='Currency' -
line_idMany2one → sale.order.linecomodel_name='sale.order.line'default=<expr>readonly=Truerequired=Truestring='Sale Line' -
purchase_priceFloatdigits=dp.get_precision('Product Price')groups='base.group_user'help='Cost of the product template used for standard stock valuation in accounting and used as a base price on purchase orders. Expressed in the default unit of measure of the product.'string='Cost'
-
confirm_purchase_price(self)@api.multi