[FIX] stock_putaway_product_template: Not required product variant if you already set a product template

TT34143
This commit is contained in:
sergio-teruel
2022-01-27 09:56:33 +01:00
parent bcf8c315a9
commit 142499e806

View File

@@ -21,7 +21,7 @@
<field name="product_id" position="before">
<field
name="product_tmpl_id"
attrs="{'readonly': [('category_id', '!=', False)], 'required': [('category_id', '=', False)]}"
attrs="{'readonly': [('category_id', '!=', False)], 'required': [('category_id', '=', False), ('product_id', '=', False)]}"
options="{'no_create': True, 'no_open': True}"
force_save="1"
/>