From 3351d2acc0dd8bd78f5d218c377cb97078bb8797 Mon Sep 17 00:00:00 2001 From: rde Date: Fri, 20 Oct 2017 13:32:29 +0200 Subject: [PATCH] [FIX] website_sale_stock_options: set max qty only if inventory_availability is always/threshold Before this commit, the input quantity would have a max qty attribute set even if the product was not set as check inventory (inventory_availability set to always or threshold). - Set inventory_availability to never in a product - Order more than 1 quantity - The sale option popup will set input quantity to 1 Now, it will check and force max quantity only for product with threshold or always as inventory_availability. --- .../views/website_sale_stock_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_stock_options/views/website_sale_stock_templates.xml b/addons/website_sale_stock_options/views/website_sale_stock_templates.xml index 8f34365277f..d5709c8556c 100644 --- a/addons/website_sale_stock_options/views/website_sale_stock_templates.xml +++ b/addons/website_sale_stock_options/views/website_sale_stock_templates.xml @@ -3,7 +3,7 @@