summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemali Bhimani <heb@odoo.com>2020-02-20 09:33:15 +0000
committerHemali Bhimani <heb@odoo.com>2020-03-09 06:46:25 +0000
commit80ede1d0c0e79dbd815ed5310e758dbef491fccc (patch)
treee48bb3a84831a490dbb9e4b1ee829c4b541069c1
parent5b87b5879c4d7d0a2a45a9cfc0bc5c19f6d85c7d (diff)
[IMP] product: min quantity int -> float
purpose of this commit is to change the field type of min_quantity from int to float on product pricelist object task:2165208 closes odoo/odoo#45792 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
-rw-r--r--addons/product/models/product_pricelist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/models/product_pricelist.py b/addons/product/models/product_pricelist.py
index 0474a119935..175cf0942ab 100644
--- a/addons/product/models/product_pricelist.py
+++ b/addons/product/models/product_pricelist.py
@@ -398,7 +398,7 @@ class PricelistItem(models.Model):
categ_id = fields.Many2one(
'product.category', 'Product Category', ondelete='cascade',
help="Specify a product category if this rule only applies to products belonging to this category or its children categories. Keep empty otherwise.")
- min_quantity = fields.Integer(
+ min_quantity = fields.Float(
'Min. Quantity', default=0,
help="For the rule to apply, bought/sold quantity must be greater "
"than or equal to the minimum quantity specified in this field.\n"