Commit 35da769
committed
[FIX] mrp_subcontracting: changing UoM causes unreserve issues
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 odoo#154327
Signed-off-by: William Henrotin (whe) <whe@odoo.com>1 parent 91ad6a0 commit 35da769
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments