Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] mrp: Selecting wrong variants #48373

Closed
wants to merge 1 commit into from

Conversation

@simongoffin
Copy link
Contributor

simongoffin commented Mar 25, 2020

Steps to reproduce the bug:

  • Create an attribute A with two values V1 and V2 and set Never as Create Variants
  • Create a product template PT with these two values V1 and V2
  • Create a bom B for PT and as expected it's not possible to select V1 and V2 on
    the bom lines (thanks to function onchange_parent_product defined on model mrp.bom.line
  • Save B and edit it again

Bug:

It was possible to select V1 and V2 on the lines of B

opw:2201319

Steps to reproduce the bug:

- Create an attribute A with two values V1 and V2 and set Never as Create Variants
- Create a product template PT with these two values V1 and V2
- Create a bom B for PT and as expected it's not possible to select V1 and V2 on
the bom lines (thanks to function onchange_parent_product defined on model mrp.bom.line
- Save B and edit it again

Bug:

It was possible to select V1 and V2 on the lines of B

opw:2201319
@simongoffin simongoffin force-pushed the odoo-dev:12.0-opw-2201319-fix-sig branch from e969c42 to cf66ca5 Mar 26, 2020
@robodoo robodoo removed the CI 🤖 label Mar 26, 2020
@simongoffin

This comment has been minimized.

Copy link
Contributor Author

simongoffin commented Mar 26, 2020

robodoo r+

@robodoo robodoo added the r+ 👌 label Mar 26, 2020
robodoo pushed a commit that referenced this pull request Mar 26, 2020
Steps to reproduce the bug:

- Create an attribute A with two values V1 and V2 and set Never as Create Variants
- Create a product template PT with these two values V1 and V2
- Create a bom B for PT and as expected it's not possible to select V1 and V2 on
the bom lines (thanks to function onchange_parent_product defined on model mrp.bom.line
- Save B and edit it again

Bug:

It was possible to select V1 and V2 on the lines of B

opw:2201319

closes #48373

Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
@robodoo robodoo closed this Mar 26, 2020
@robodoo robodoo deployed to merge Mar 26, 2020 Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.