Skip to content

Commit

Permalink
[IMP] purchase_variant_configurator: use product domain
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbottemanne committed Mar 7, 2024
1 parent 317b63c commit 536fa0e
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,33 @@
name="attrs"
>{'readonly': [('state', 'in', ('purchase', 'to approve','done', 'cancel'))]}</attribute>
</xpath>
<xpath
expr="//field[@name='order_line']/form//field[@name='product_id']"
position="attributes"
>
<attribute
name="attrs"
>{'readonly': [('state', 'in', ('purchase', 'to approve','done', 'cancel'))]}</attribute>
<attribute name="domain">product_id_configurator_domain</attribute>
</xpath>
<xpath
expr="//field[@name='order_line']/form//field[@name='product_id']"
position="after"
>
<field name="product_id_configurator_domain" invisible="1" />
</xpath>
<xpath
expr="//field[@name='order_line']/tree//field[@name='product_id']"
position="after"
>
<field name="product_id_configurator_domain" invisible="1" />
</xpath>
<xpath
expr="//field[@name='order_line']/tree//field[@name='product_id']"
position="attributes"
>
<attribute name="domain">product_id_configurator_domain</attribute>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 536fa0e

Please sign in to comment.