-
-
Notifications
You must be signed in to change notification settings - Fork 468
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
mocalculate data on MO does not bring the product_UOM #62
Comments
And it's not related, @anajuaristi, as just checked by @oihane. Please don't add noise and wait if you have already allocated a person for checking, then wait for her results and report it with more data. |
Tested in runbot _base database:
In each step I created a BoM and I added "Ice Cream" as component (it has 'kg' as UoM) and it worked OK So I think you are not doing correctly the tests. |
Ok. It could be it's not related exactly to that module but somehow, somewhere is happening. It's because of that i opened the issue. Just to not forget and try to solve it. |
This is where it happens: https://github.com/OCA/manufacture/blob/8.0/mrp_bom_reference_selection/models/mrp_bom_line.py#L38 |
[FIX] mrp_bom_reference_selection: Fixed onchange error closes #62
Closing due to aging, please feel free to reopen. |
Create a bill of materials with a product in KG
Go to manufacturing order
Calculate data
The assigned product UOM in "planned materials" is Unit, so it's wrong and it's causing this error:
Field(s) product_uom failed against a constraint: You try to move a product using a UoM that is not compatible with the UoM of the product moved. Please use an UoM in the same UoM category.
This issue was reported by me and @ybofr on this PR but you said it was not related to new hooks. I think it is, since the error appairs with "calculate data" button.
#57
@pedrobaeza @rafaelbn @oihane
The text was updated successfully, but these errors were encountered: