odoo-product-configurator icon indicating copy to clipboard operation
odoo-product-configurator copied to clipboard

[8.0] Unable to Reconfigure Product with Custom Values

Open livingmine opened this issue 7 years ago • 0 comments

Impacted versions: 8.0 Steps to reproduce:

  1. Create a configurable template with one custom attribute in my case its type is float
  2. Configure the product on sales order line and fill in the custom value for that custom attribute until you click done
  3. Once done, click reconfigure product and reconfigure the product then click done again

Current behavior: image

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.

livingmine avatar Aug 01 '17 13:08 livingmine