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][IMP] product_configurator_mrp (Set BoM Sequences) #80

Closed patrickrwilson closed 1 year ago

patrickrwilson commented 2 years ago

Sets sequences on the BoM so proper BoM is used on the MO. When the variant is created by the configurator, so is it's BoM however the BoM sequences typically aren't set. So, when Odoo creates an MO, it looks through the BoM's of the related product template and uses the first one it finds either one with the product variant or without any variants.

If the main BoM (aka Master BoM) is found first, it will be used instead of the variant's BoM since it doesn't have a variant applied to it.

Setting the sequences and making the BoM's without variants have a high sequence resolves this issue.

OCA-git-bot commented 2 years ago

Hi @PCatinean, some modules you are maintaining are being modified, check this out!

patrickrwilson commented 2 years ago

Not sure how to fix the pre-commit error that is showing, I don't think its an issue with the code: ImportError: cannot import name 'formatargspec' from 'inspect' (/opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/inspect.py)

github-actions[bot] commented 1 year ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.