Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 17.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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 0 migration notes 1 model 2 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
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

New fields (2)
  • sales_margin Float
    compute='_compute_product_margin_fields_values'
  • sales_margin_rate Float
    compute='_compute_product_margin_fields_values'
Public methods (0)

No public methods.