Floor price on product
sale_floor_price · OCA/sale-financial
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.01 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
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 · 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
Set a minimal price on product and raise a warning if sale price is too low
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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…