From 37360beb6473dd0f2356ed8796fc2b6a7f99324a Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Fri, 22 Mar 2024 17:03:44 +0100 Subject: [PATCH] [FIX] stock_putaway_rule_views: Remove required property from fields in putaway rules. In this module, the product template, variant and category fields were made mandatory. Actually in relocation strategies it is not mandatory to set up a product, so the above mentioned fields should not be mandatory either. TT48457 --- .../views/stock_putaway_rule_views.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/stock_putaway_product_template/views/stock_putaway_rule_views.xml b/stock_putaway_product_template/views/stock_putaway_rule_views.xml index d9852ea5c..0e2690266 100644 --- a/stock_putaway_product_template/views/stock_putaway_rule_views.xml +++ b/stock_putaway_product_template/views/stock_putaway_rule_views.xml @@ -7,21 +7,19 @@ - False {'readonly': [('category_id', '!=', False)], 'required': [('category_id', '=', False),('product_tmpl_id', '=', False)]} + >{'readonly': ['|',('category_id', '!=', False), ('product_tmpl_id', '!=', False)]} - False {'readonly': ['|', ('product_id', '!=', False), ('product_tmpl_id', '!=', False)], 'required': [('product_id', '=', False),('product_tmpl_id', '=', False)]} + >{'readonly': ['|', ('product_id', '!=', False), ('product_tmpl_id', '!=', False)]}