From 407b85e329476699e9bda4348e6cb756bbd8a132 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 20 Mar 2018 09:24:18 +0100 Subject: [PATCH] [FIX] product: default quantity on pricelist item - Create a new pricelist for a new currency - Set the 'Sale Price' option to 'A single sale price per product', so that the user cannot see the pricelist details - Sell 0.5 unit of the product with the new pricelist The pricelist is not correctly applied. This is because the default minimum quantity is 1. Once the user is selling less than 1 unit, the pricelist is not applied. opw-1825353 --- addons/product/pricelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 3cd8a03c24c..8906fbe6300 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -340,7 +340,7 @@ class product_pricelist_item(osv.osv): _defaults = { 'base': 'list_price', - 'min_quantity': 1, + 'min_quantity': 0, 'sequence': 5, 'price_discount': 0, 'applied_on': '3_global',