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] MRP: BoM created for variants ignores quantities #56

Closed patrickrwilson closed 2 years ago

patrickrwilson commented 2 years ago

Module

product_configurator_mrp

Describe the bug

When a user configures a product with a master BoM, the variant gets created with it's own associated BoM however the quantities of the components seem to be ignored.

Operations are also ignored and should be copied over to the variant BoM.

Here is a simple BoM for the product template that has several components with quantities.

image

After configuring the product, the variant is created with it's BoM but the quantities are ignored and the default 1.0 are set.

image

You can see it doesn't matter if configuration sets are used or not, all components have a qty of 1 on the variant's BoM.

To Reproduce

Affected versions: 14.0 (I didn't check other versions)

Steps to reproduce the behavior:

  1. Create a configurable product.
  2. Create a BoM for the configurable product. Add component lines with and without configuration sets.
  3. Configure the product so it will create a variant and variant BoM.

Expected behavior The variant's BoM components should contain the quantities that are specified in the product templates BoM. Below is a corrected screenshot of the expected output of the items explained in the description of the bug.

image

Additional context This was discovered in v14 so it's unknown if this is an issue in other versions.

patrickrwilson commented 2 years ago

Resolved with #57