Repository
OCA/sale-financial · module folder · Try on Runboat
Module version
5.1
Category
Tool
Folder size
0.01 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
sale_markup
Description
Set a minimal price on product and raise a warning if sale price is too low

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product form Inherits product.product_normal_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.

Loading…

Loading…

Loading…

Loading…