diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-08-09 12:30:41 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-08-10 16:09:57 +0200 |
| commit | 19116cc8782ace5a34ebea0d70799bf6e0366de7 (patch) | |
| tree | d92c708d66f39f90e0b9190d38a67181774703c2 /addons/project_issue/project_issue_data.xml | |
| parent | 123ee27e409cab5ddb3aadfd7edc833d4adae343 (diff) | |
[FIX] stock: unreserve move only if reserved quants
An issue occurs in the following use case:
- Enable "Bring goods to output location before shipping (Pick + Ship)"
- Create a SO with 2 lines. 2 Deliveries are created, Pack and Ship.
- Go to "Procurement Exceptions", and cancel one of the 2 lines
- Go to the OUTgoing shipping, "Force Availability", and "Validate"
An error occurs: "Cannot unreserve a done move". The system tries to
unreserve a move which is actually cancelled.
Actually, it should not be necessary to unreserve this move, since no
quants were actually reserved in a first place. The fix ensures that, in
this situation, we don't try to unreserve a move with no quant reserved.
This should be safe to do it in all cases, but better be safe by adding
the condition `if 'no_state_change' in context` to impact only this
specific use case.
opw-685650
Diffstat (limited to 'addons/project_issue/project_issue_data.xml')
0 files changed, 0 insertions, 0 deletions
