[FIX] sale_product_configurator: no 40 attribute limit

Set a arbitrary 10000 limit instead of 40 for the configurator
product_no_variant_attribute_value_ids (attributes that do not create a
variant) and product_template_attribute_value_ids (attributes that
create a variant) fields.

With a limit of 40, when we edited a variant (eg. on sale order) with
more than 40 create_variant=never attributes, the widget
ProductConfiguratorFormView that work with this data would only received
40 attributes so there would be an error message:

  "The combination does not exists."

which would prevent edition of the variant.

opw-2333091
closes #58493

closes odoo/odoo#58670

X-original-commit: 295884ce154990ecb51d3fc7c39aeeb21dc11f03
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
Nicolas Lempereur
2020-09-28 12:17:11 +00:00
parent 3685b9c85b
commit 64d9120ed2
@@ -7,14 +7,18 @@
<form js_class="product_configurator_form">
<group>
<field name="product_template_id" class="oe_product_configurator_product_template_id" />
<field name="product_template_attribute_value_ids" invisible="1" />
<field name="product_template_attribute_value_ids" invisible="1">
<tree limit="10000"/>
</field>
<field name="product_custom_attribute_value_ids" invisible="1" widget="one2many" >
<tree limit="10000">
<field name="custom_product_template_attribute_value_id"/>
<field name="custom_value"/>
</tree>
</field>
<field name="product_no_variant_attribute_value_ids" invisible="1" />
<field name="product_no_variant_attribute_value_ids" invisible="1">
<tree limit="10000"/>
</field>
<field name="quantity" invisible="1" />
</group>
<footer>