Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

[8.0] Unable to Reconfigure Product with Custom Values #118

Open
livingmine opened this issue Aug 1, 2017 · 0 comments
Open

[8.0] Unable to Reconfigure Product with Custom Values #118

livingmine opened this issue Aug 1, 2017 · 0 comments

Comments

@livingmine
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant