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
[FW][FIX] mrp_subcontracting: changing UoM causes unreserve issues #154450
[FW][FIX] mrp_subcontracting: changing UoM causes unreserve issues #154450
Conversation
@pno-odoo @Whenrow cherrypicking of pull request #154327 failed. stdout:
stderr:
Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
90a1808
to
bc96028
Compare
Before this commit: It was possible to purchase a subcontracted product and on the receipt of the product, change the unit of measure o on the stock move lines of the components when the quantities were already reserved. This caused unreserve issue given that, all of a sudden, instead of having 200g, we would have 200kg reserved and the change would not be reflected on the quant. After this commit: The view was modified to not allow changes of UoM if there are reserved quantities, or if the state is done. OPW-3742720 X-original-commit: 35da769
bc96028
to
5cb12ca
Compare
fw-bot r+ |
@pno-odoo I can only do this on unmodified forward-port PRs, ask robodoo. |
robodoo r+ |
Before this commit: It was possible to purchase a subcontracted product and on the receipt of the product, change the unit of measure o on the stock move lines of the components when the quantities were already reserved. This caused unreserve issue given that, all of a sudden, instead of having 200g, we would have 200kg reserved and the change would not be reflected on the quant. After this commit: The view was modified to not allow changes of UoM if there are reserved quantities, or if the state is done. OPW-3742720 closes #154450 X-original-commit: 35da769 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Before this commit:
"Cannot unreserve more than you have in stock" Error
It was possible to purchase a subcontracted product, and on the receipt of the product, change the unit of measure o on the stock move lines of the components when the quantities were already reserved. This caused unreserve issue given that, all of a sudden, instead of having 200g, we would have 200kg reserved and the change would not be reflected on the quant.
After this commit:
The view was modified to not allow changes of UoM if there are reserved quantities, or if the state is done.
OPW-3742720
Forward-Port-Of: #154327