Skip to content

Commit

Permalink
[FIX] connector_oxigesti: make Internal Reference mandatory in Produc…
Browse files Browse the repository at this point in the history
…ts and Variants
  • Loading branch information
eantones committed Oct 14, 2024
1 parent 38810e8 commit 8f6b411
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion connector_oxigesti/views/product_product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<field name="default_code" position="attributes">
<attribute
name="attrs"
>{'invisible': [('product_variant_count', '>', 1)]}</attribute>
>{'invisible': [('product_variant_count', '>', 1)],
'required': [('product_variant_count', '&lt;', 2)]}</attribute>
</field>
</field>
</record>
Expand All @@ -34,6 +35,20 @@
<field name="oxigesti_bind_ids" nolabel="1" />
</group>
</page>
<field name="default_code" position="attributes">
<attribute name="required">1</attribute>
</field>
</field>
</record>

<record id="product_variant_easy_edit_view" model="ir.ui.view">
<field name="name">product.product.connector.easy.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_variant_easy_edit_view" />
<field name="arch" type="xml">
<field name="default_code" position="attributes">
<attribute name="required">1</attribute>
</field>
</field>
</record>

Expand Down

0 comments on commit 8f6b411

Please sign in to comment.