Product report sale margin
product_margin_report_sale_margin · OCA/margin-analysis
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module adds 2 new fields to the Product Margins report: Sales margin and Sales margin rate.
The report's Total Margin compares every sale with every purchase invoiced in the selected period, so purchases of units not yet sold also reduce it. For example, if 100 units were purchased but only 10 have been sold, the Total Margin can be negative. The Sales margin only charges the cost of the units invoiced to customers, valued at the average purchase price of the period.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_margin_view_form |
product.margin.form.inherit.product_margin_report_sale_margin | product.product | form | Inherits product_margin.view_product_margin_form |
product_margin_view_tree |
product.margin.tree.product_margin_report_sale_margin | product.product | tree | Inherits product_margin.view_product_margin_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
-
sales_marginFloatcompute='_compute_product_margin_fields_values' -
sales_margin_rateFloatcompute='_compute_product_margin_fields_values'
No public methods.