Margins by Products
product_margin · odoo/odoo
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 15 Odoo series since 6.1
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
LGPL-3
No conflicts with its dependencies
Folder size
0.77 MB
Module directory on disk
Code analysis
0 migration notes
2 models
4 views
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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…
Loading…