From 3f2815ab2f29dfcddbd616447e5f7a81c87b8f6a Mon Sep 17 00:00:00 2001 From: Arnold Moyaux Date: Tue, 17 Mar 2020 13:18:22 +0000 Subject: [PATCH] [IMP] stock: default min and max for orderpoint Technicaly it's anoying to create orderpoint and explicitely set the product_min and product_max to 0.0. If another value should be use, it would probably not be forgotten. Task: 2161378 --- addons/stock/models/stock_orderpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/models/stock_orderpoint.py b/addons/stock/models/stock_orderpoint.py index 64be17bffd6..5e34bb6230e 100644 --- a/addons/stock/models/stock_orderpoint.py +++ b/addons/stock/models/stock_orderpoint.py @@ -59,11 +59,11 @@ class StockWarehouseOrderpoint(models.Model): 'uom.uom', 'Unit of Measure', related='product_id.uom_id') product_uom_name = fields.Char(string='Product unit of measure label', related='product_uom.display_name', readonly=True) product_min_qty = fields.Float( - 'Minimum Quantity', digits='Product Unit of Measure', required=True, + 'Minimum Quantity', digits='Product Unit of Measure', required=True, default=0.0, help="When the virtual stock equals to or goes below the Min Quantity specified for this field, Odoo generates " "a procurement to bring the forecasted quantity to the Max Quantity.") product_max_qty = fields.Float( - 'Maximum Quantity', digits='Product Unit of Measure', required=True, + 'Maximum Quantity', digits='Product Unit of Measure', required=True, default=0.0, help="When the virtual stock goes below the Min Quantity, Odoo generates " "a procurement to bring the forecasted quantity to the Quantity specified as Max Quantity.") qty_multiple = fields.Float(