TIP: You can type at any time to perform a new search.
Margins by Products
product_margin · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 0.1.0
- Category
- Sales/Sales
- Folder size
- 0.77 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-15 22:44:19
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Xavier Morel, Fabien Pinckaers, Raphael Collet, Odoo Translation Bot, Julien Castiaux, Rémy Voet (ryv), Tiffany Chang (tic), Gorash, JF Aubert, Ali Alfie (alal), Dylan Kiss (dyki), Louis Gobert, gteboul, Mohammad Abdulmoneim (abdu)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Adds a reporting menu in products that computes sales, purchases, margins and other interesting indicators based on invoices. ============================================================================================================================= The wizard to launch the report has several options to help you get the data you need.
Code Analysis ⓘ
Views touched (4)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_margin_form_view |
product.margin.form | product.margin | form | New |
view_product_margin_form |
product.margin.form.inherit | product.product | form | New |
view_product_margin_graph |
product.margin.graph | product.product | graph | New |
view_product_margin_tree |
product.margin.list | product.product | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (3)
-
from_dateDatedefault=time.strftime('%Y-01-01') args: 'From' -
invoice_stateSelectiondefault='open_paid'required=True args: [('paid', 'Paid'), ('open_paid', 'Open and Paid'), ('draft_open_paid', 'Draft, Open and Paid')], 'Invoice State' -
to_dateDatedefault=time.strftime('%Y-12-31') args: 'To'
-
action_open_window(self)
New fields (17)
-
date_fromDatecompute='_compute_product_margin_fields_values'string='Margin Date From' -
date_toDatecompute='_compute_product_margin_fields_values'string='Margin Date To' -
expected_marginFloatcompute='_compute_product_margin_fields_values'help='Expected Sale - Normal Cost'string='Expected Margin' -
expected_margin_rateFloatcompute='_compute_product_margin_fields_values'help='Expected margin * 100 / Expected Sale'string='Expected Margin (%)' -
invoice_stateSelectioncompute='_compute_product_margin_fields_values'readonly=Trueselection=[('paid', 'Paid'), ('open_paid', 'Open and Paid'), ('draft_open_paid', 'Draft, Open and Paid')]string='Invoice State' -
normal_costFloatcompute='_compute_product_margin_fields_values'help='Sum of Multiplication of Cost price and quantity of Vendor Bills'string='Normal Cost' -
purchase_avg_priceFloatcompute='_compute_product_margin_fields_values'help='Avg. Price in Vendor Bills'string='Avg. Purchase Unit Price' -
purchase_gapFloatcompute='_compute_product_margin_fields_values'help='Normal Cost - Total Cost'string='Purchase Gap' -
purchase_num_invoicedFloatcompute='_compute_product_margin_fields_values'help='Sum of Quantity in Vendor Bills'string='# Invoiced in Purchase' -
sale_avg_priceFloatcompute='_compute_product_margin_fields_values'help='Avg. Price in Customer Invoices.'string='Avg. Sale Unit Price' -
sale_expectedFloatcompute='_compute_product_margin_fields_values'help='Sum of Multiplication of Sale Catalog price and quantity of Customer Invoices'string='Expected Sale' -
sale_num_invoicedFloatcompute='_compute_product_margin_fields_values'help='Sum of Quantity in Customer Invoices'string='# Invoiced in Sale' -
sales_gapFloatcompute='_compute_product_margin_fields_values'help='Expected Sale - Turn Over'string='Sales Gap' -
total_costFloatcompute='_compute_product_margin_fields_values'help='Sum of Multiplication of Invoice price and quantity of Vendor Bills 'string='Total Cost' -
total_marginFloatcompute='_compute_product_margin_fields_values'help='Turnover - Total cost'string='Total Margin' -
total_margin_rateFloatcompute='_compute_product_margin_fields_values'help='Total margin * 100 / Turnover'string='Total Margin Rate(%)' -
turnoverFloatcompute='_compute_product_margin_fields_values'help='Sum of Multiplication of Invoice price and quantity of Customer Invoices'string='Turnover'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…