Skip to content

Commit c06d83a

Browse files
victoralmauBhaveshHeliconia
authored andcommitted
[IMP] sale_variant_configurator: Add the appropriate domain to the product_id field to filter correctly.
TT57913
1 parent d05eee8 commit c06d83a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

sale_variant_configurator/views/sale_view.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,29 @@
1414
>
1515
<field name="product_tmpl_id" string="Product Template" />
1616
</xpath>
17+
<xpath
18+
expr="//field[@name='order_line']/tree//field[@name='product_id']"
19+
position="after"
20+
>
21+
<field name="product_id_configurator_domain" invisible="1" />
22+
</xpath>
1723
<xpath expr="//field[@name='order_line']" position="attributes">
1824
<attribute name="options">{'reload_on_button': true}</attribute>
1925
</xpath>
26+
<xpath
27+
expr="//field[@name='order_line']/form//field[@name='product_id']"
28+
position="after"
29+
>
30+
<field name="product_id_configurator_domain" invisible="1" />
31+
</xpath>
2032
<xpath
2133
expr="//field[@name='order_line']/form//field[@name='product_id']"
2234
position="attributes"
2335
>
2436
<attribute
2537
name="attrs"
2638
>{'readonly': [('product_updatable', '=', False)]}</attribute>
39+
<attribute name="domain">product_id_configurator_domain</attribute>
2740
</xpath>
2841
<xpath
2942
expr="//field[@name='order_line']/form//field[@name='product_id']"

0 commit comments

Comments
 (0)