Merge PR #1361 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-01-27 18:26:49 +00:00

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"
/>