Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 122 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 6.1

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.03 MB
Module directory on disk
Code analysis 3 migration notes 3 models 7 views 0 HTTP endpoints

Description

display the product and sale markup in the appropriate views

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 7

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