odoo-product-configurator
odoo-product-configurator copied to clipboard
[8.0] Unable to Reconfigure Product with Custom Values
Impacted versions: 8.0 Steps to reproduce:
- Create a configurable template with one custom attribute in my case its type is float
- Configure the product on sales order line and fill in the custom value for that custom attribute until you click done
- Once done, click reconfigure product and reconfigure the product then click done again
Current behavior:
Expected behavior: The product is re-configured and sales order line is updated.
Video/Screenshot link (optional): N/A
I think custom_vals at the beginning of the method is prepared for
variant = self.product_tmpl_id.create_variant(
self.value_ids.ids, custom_vals)
and it's a valid structure for that purpose but it's not a valid structure for (6, 0, list_ids) operation in
if self.product_id:
self.product_id.write({
'attribute_value_ids': [(6, 0, self.value_ids.ids)],
'value_custom_ids': [(6, 0, custom_vals)]
})
which is triggered when reconfigure product button is pressed.