From 80ede1d0c0e79dbd815ed5310e758dbef491fccc Mon Sep 17 00:00:00 2001 From: Hemali Bhimani Date: Thu, 20 Feb 2020 09:33:15 +0000 Subject: [PATCH] [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) --- addons/product/models/product_pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"