OCA / product-configurator

Advanced Product Configurator (from the original Pledra project https://github.com/pledra/odoo-product-configurator)
GNU Affero General Public License v3.0
33 stars 78 forks source link

[14.0][BUG] product_configurator_mrp (Duplicate Components on Variant BoM's) #59

Closed patrickrwilson closed 2 years ago

patrickrwilson commented 2 years ago

Module

product_configurator_mrp

Describe the bug

If the same configuration set is used for several components on the product template BoM, when it generates the BoM for the variant it will add duplicate components to the variant BoM.

To Reproduce

Affected versions: 14.0 is where this was noticed.

Steps to reproduce the behavior:

  1. Create configurable product template image
  2. Create master BoM for product template with a configuration set that can be used on multiple lines. image
  3. Configure the product using an attribute value that is contained in the multiple config set. You will see the BoM for the variant that is created will contain duplicates. image

Expected behavior The variant BoM should not contain duplicates on only the components that apply. Sample with correct BoM components

image
patrickrwilson commented 2 years ago

Resolved #60