Product Margin Classification
product_margin_classification · OCA/margin-analysis
OCA/sale-workflow 8.0–10.0 → OCA/margin-analysis 12.0–16.0
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 8.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.4 MB
Module directory on disk
Code analysis
5 migration notes
3 models
8 views
0 HTTP endpoints
Migration considerations
view_product_margin_classification_form— 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 · sourceview_product_margin_classification_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_product_product_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_product_product_tree_inherit— 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. (3 occurrences in this file) migration-view-attrs-states · sourceview_product_template_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. (2 occurrences in this file) 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 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_product_margin_classification_form |
product.margin.classification | form | New | |
view_product_margin_classification_tree |
product.margin.classification | tree | New | |
view_product_product_form |
product.product | form | Inherits product.product_normal_form_view | |
view_product_product_search |
product.product | search | Inherits product.product_search_form_view | |
view_product_product_tree |
product.product | tree | New | |
view_product_product_tree_inherit |
product.product | tree | Inherits product.product_product_tree_view | |
view_product_template_form |
product.template | form | Inherits product.product_template_only_form_view | |
view_product_template_tree |
product.template | tree | Inherits product.product_template_tree_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (12)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>string='Company' -
markupFloatdigits='Margin Rate'help='Value that help you to compute the sale price, based on your cost, as defined: Sale Price = (Cost * (100 + Markup)) / 100\nIt is computed with the following formula Markup = 100 * (Sale Price - Cost) / Cost'required=True -
nameCharrequired=True -
price_roundFloatdefault=<expr>digits='Product Price'help='Sets the price so that it is a multiple of this value.\nRounding is applied after the margin and before the surcharge.\nTo have prices that end in 9.99, set rounding 1, surcharge -0.01'string='Price Rounding' -
price_surchargeFloatdigits='Product Price'help='Specify the fixed amount to add or substract(if negative) to the amount calculated with the discount.' -
product_correct_price_qtyIntegercompute='_compute_product_different_price_qty'string='Total Products With Correct Price' -
product_idsOne2many → product.productcomodel_name='product.product'inverse_name='margin_classification_id'string='Products' -
product_incorrect_price_qtyIntegercompute='_compute_product_different_price_qty'string='Total Products With Incorrect Price' -
product_qtyIntegercompute='_compute_product_qty'store=Truestring='Products Quantity' -
product_too_cheap_qtyIntegercompute='_compute_product_different_price_qty'string='Total Products Too Cheap' -
product_too_expensive_qtyIntegercompute='_compute_product_different_price_qty'string='Total Products Too Expensive' -
profit_marginFloatcompute='_compute_profit_margin'digits='Margin Rate'help="Also called 'Net margin' or 'Net Profit Ratio'.\nIt is computed with the following formula Profit Margin = 100 * (Sale Price - Cost) / Sale Price"inverse='_inverse_profit_margin'
-
apply_theoretical_price(self) -
apply_theoretical_price_too_cheap(self) -
apply_theoretical_price_too_expensive(self)
New fields (4)
-
margin_classification_idMany2one → product.margin.classificationcheck_company=Truecomodel_name='product.margin.classification'string='Margin Classification' -
margin_stateSelectioncompute='_compute_theoretical_multi'selection=MARGIN_STATE_SELECTIONstore=Truestring='Theoretical Price State' -
theoretical_differenceFloatcompute='_compute_theoretical_multi'digits='Product Price'store=True -
theoretical_priceFloatcompute='_compute_theoretical_multi'digits='Product Price'store=True
-
apply_theoretical_price(self) -
apply_theoretical_price_too_cheap(self) -
apply_theoretical_price_too_expensive(self) -
use_theoretical_price(self)
New fields (4)
-
margin_classification_idMany2one → product.margin.classificationcheck_company=Truecomodel_name='product.margin.classification'compute='_compute_theoretical_multi_template'inverse='_inverse_margin_classification_id'search='_search_margin_classification_id'string='Margin Classification' -
margin_stateSelectioncompute='_compute_theoretical_multi_template'selection=MARGIN_STATE_SELECTIONstring='Theoretical Price State' -
theoretical_differenceFloatcompute='_compute_theoretical_multi_template'digits='Product Price' -
theoretical_priceFloatcompute='_compute_theoretical_multi_template'digits='Product Price'
-
apply_theoretical_price(self) -
apply_theoretical_price_too_cheap(self) -
apply_theoretical_price_too_expensive(self) -
use_theoretical_price(self)
Loading…
Loading…
Loading…