From dd13dfe43b040f5dd391d3195dc006f3c45b3623 Mon Sep 17 00:00:00 2001 From: Thierry Ducrest Date: Tue, 5 Jan 2021 10:21:53 +0100 Subject: [PATCH] [13.0][Fix] sale_order_line_packaging_qty zero qty If a packaging as a quantity set to zero it should not be available for selection on a sale order line. --- sale_order_line_packaging_qty/views/sale_order.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_order_line_packaging_qty/views/sale_order.xml b/sale_order_line_packaging_qty/views/sale_order.xml index 6a99b4ee191..3e8ad6584f6 100644 --- a/sale_order_line_packaging_qty/views/sale_order.xml +++ b/sale_order_line_packaging_qty/views/sale_order.xml @@ -38,7 +38,7 @@ name="product_packaging" attrs="{'invisible': [('product_id', '=', False)]}" context="{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}" - domain="[('product_id','=',product_id)]" + domain="[('product_id','=',product_id), ('qty', '>', 0)]" groups="product.group_stock_packaging" optional="show" />