Skip to content

Commit

Permalink
[IMP] account_invoice_variant_configurator: use product domain
Browse files Browse the repository at this point in the history
See #337
  • Loading branch information
jdoutreloux committed Mar 7, 2024
1 parent 9178f16 commit 176dac1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions account_invoice_variant_configurator/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,30 @@
/>
</group>
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/form//field[@name='product_id']"
position="after"
>
<field name="product_id_configurator_domain" invisible="1" />
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/form//field[@name='product_id']"
position="attributes"
>
<attribute name="domain">product_id_configurator_domain</attribute>
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/tree//field[@name='product_id']"
position="after"
>
<field name="product_id_configurator_domain" invisible="1" />
</xpath>
<xpath
expr="//field[@name='invoice_line_ids']/tree//field[@name='product_id']"
position="attributes"
>
<attribute name="domain">product_id_configurator_domain</attribute>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 176dac1

Please sign in to comment.