Product Margin and Margin Rate
product_standard_margin · OCA/margin-analysis
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Description
Add 2 fields on the product form that compute the standard (or theorical) margin and markup based on the current values of sale and standard price present in the product form. We take care of taxe included or excluded.
It will just compute it as follow: Margin : (Sale Price without tax - Standard Price) / Sale Price without tax Markup : (Sale Price without tax - Standard Price) / Standard Price

Note:
As this module will base his simple computation on sale and cost prices, it suppose you have them both in the same currency (the price type must of the same currency for both of them). Remember this is the default OpenERP configuration (price type of all product price fields are set as the same as the company currency). We don't take care of it cause otherwise we should have added a dependency on sale module.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_product_product_form |
product.product | form | Inherits product.product_normal_form_view | |
view_product_product_form_easy |
product.product | form | Inherits product.product_variant_easy_edit_view | |
view_product_product_tree_margin |
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_margin |
product.template | tree | Inherits product.product_template_tree_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
list_price_vat_exclFloatcompute='_compute_margin'digits='Product Price'store=Truestring='Sale Price VAT Excluded' -
standard_marginFloatcompute='_compute_margin'digits='Product Price'help='Margin is [ sale price (Wo Tax) - cost price ] of the product form (not based on historical values). Take care of tax include and exclude. If no sale price, the margin will be negativ.'store=Truestring='Margin' -
standard_margin_rateFloatcompute='_compute_margin'digits='Product Price'help='Margin rate is [ Margin / sale price (Wo Tax) ] of the product form (not based on historical values).Take care of tax include and exclude.. If no sale price set, will display 999.0'store=Truestring='Margin on Sales (%)' -
standard_markup_rateFloatcompute='_compute_margin'digits='Product Price'help='Markup rate is [ Margin / cost price (Wo Tax) ] of the product form (not based on historical values).Take care of tax include and exclude.. If no cost price set, will display 999.0'store=Truestring='Markup Rate (%)'
No public methods.
-
list_price_vat_exclFloatcompute='_compute_margin'digits='Product Price'string='Sale Price VAT Excluded' -
standard_marginFloatcompute='_compute_margin'digits='Product Price'help='Margin is [ sale price (Wo Tax) - cost price ] of the product form (not based on historical values). Take care of tax include and exclude. If no sale price, the margin will be negativ.'string='Margin' -
standard_margin_rateFloatcompute='_compute_margin'digits='Product Price'help='Margin rate is [ Margin / sale price (Wo Tax) ] of the product form (not based on historical values).Take care of tax include and exclude.. If no sale price set, will display 999.0'string='Margin on Sales (%)' -
standard_markup_rateFloatcompute='_compute_margin'digits='Product Price'help='Markup rate is [ Margin / cost price (Wo Tax) ] of the product form (not based on historical values).Take care of tax include and exclude.. If no cost price set, will display 999.0'string='Markup Rate (%)'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…