Markup rate on product and sales
sale_markup · OCA/sale-financial
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 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
AGPL-3
No conflicts with its dependencies
Folder size
0.03 MB
Module directory on disk
Code analysis
3 migration notes
3 models
7 views
0 HTTP endpoints
Migration considerations
Product— Class 'Product' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceSaleOrder— Class 'SaleOrder' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
display the product and sale markup in the appropriate views
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_markup_product_form |
product.markup.view.form | product.product | form | Inherits product.product_normal_form_view |
sale_markup_product_tree |
product.markup.view.tree | product.product | tree | Inherits product.product_product_tree_view |
sale_markup_sale_order_form_line_form |
sale.order.markup.view.form2 | sale.order | form | Inherits sale.view_order_form |
sale_markup_sale_order_form_line_tree |
sale.order.markup.view.form | sale.order | form | Inherits sale.view_order_form |
sale_markup_sale_order_line_tree |
sale.order.line.markup.view.tree | sale.order.line | tree | Inherits sale.view_order_line_tree |
sale_markup_sale_order_tree |
sale.order.markup.view.tree | sale.order | tree | Inherits sale.view_order_tree |
sale_markup_sale_order_view |
sale.order.markup.view.form | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
compute_markup(self, cursor, user, ids, product_uom=None, pricelist=None, sale_price=None, properties=None, context=None)compute markup If properties, pricelist and sale_price arguments are set, it will be used to compute all results
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (5)-
onchange_commercial_margin(self, cursor, uid, ids, margin, cost_price, price_unit, context=None)If markup rate change compute the discount -
onchange_discount(self, cursor, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)If discount change, compute the new markup rate -
onchange_markup_rate(self, cursor, uid, ids, markup, cost_price, price_unit, context=None)If markup rate change compute the discount -
onchange_price_unit(self, cursor, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)If price unit change, compute the new markup rate. -
product_id_change(self, cursor, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, discount=None, price_unit=None, context=None)Overload method If product change, compute the new markup. Added params : - price_unit, - discount - properties
Loading…
Loading…
Loading…
Loading…