TIP: You can type at any time to perform a new search.
Markup rate on product and sales
sale_markup · OCA/sale-financial
- Repository
- OCA/sale-financial · module folder · Try on Runboat
- Module version
- 5.1
- Category
- version
- Folder size
- 0.03 MB
- License
- AGPL-3
- Application
- Yes
- Auto-installable
- No
- Website
- http://www.camptocamp.com/
- Last tracking update
- 2026-08-07 07:17:52
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp
- Committers
- Pedro M. Baeza
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
display the product and sale markup in the appropriate views
Code Analysis ⓘ
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…