diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2020-09-25 08:27:15 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2020-09-28 11:48:09 +0000 |
| commit | 658d0fa32f35f4c4f9a1828b11fa383d3dad3b46 (patch) | |
| tree | b80542f372979dfd8d2b802192bfeeabec9f2479 | |
| parent | d9fd4ad623645a91a5f892cea684d1e211c08061 (diff) | |
[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#58659
X-original-commit: 295884ce154990ecb51d3fc7c39aeeb21dc11f03
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
| -rw-r--r-- | addons/sale_product_configurator/wizard/sale_product_configurator_views.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/sale_product_configurator/wizard/sale_product_configurator_views.xml b/addons/sale_product_configurator/wizard/sale_product_configurator_views.xml index ef094e76899..8c7cf01636d 100644 --- a/addons/sale_product_configurator/wizard/sale_product_configurator_views.xml +++ b/addons/sale_product_configurator/wizard/sale_product_configurator_views.xml @@ -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> |
