Skip to content

Commit

Permalink
Merge PR #1970 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Apr 16, 2024
2 parents 45beebf + dc0019c commit b3d8bea
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@
<field name="inherit_id" ref="stock.stock_putaway_list" />
<field name="arch" type="xml">
<field name="product_id" position="attributes">
<attribute name="readonly">False</attribute>
<attribute
name="attrs"
>{'readonly': [('category_id', '!=', False)], 'required': [('category_id', '=', False),('product_tmpl_id', '=', False)]}</attribute>
>{'readonly': ['|',('category_id', '!=', False), ('product_tmpl_id', '!=', False)]}</attribute>
</field>
<field name="category_id" position="attributes">
<attribute name="readonly">False</attribute>
<attribute
name="attrs"
>{'readonly': ['|', ('product_id', '!=', False), ('product_tmpl_id', '!=', False)], 'required': [('product_id', '=', False),('product_tmpl_id', '=', False)]}</attribute>
>{'readonly': ['|', ('product_id', '!=', False), ('product_tmpl_id', '!=', False)]}</attribute>
</field>
<field name="product_id" position="before">
<field
name="product_tmpl_id"
attrs="{'readonly': [('category_id', '!=', False)], 'required': [('category_id', '=', False), ('product_id', '=', False)]}"
attrs="{'readonly': [('category_id', '!=', False)]}"
options="{'no_create': True, 'no_open': True}"
force_save="1"
/>
Expand Down

0 comments on commit b3d8bea

Please sign in to comment.