diff options
| author | Pierre Masereel <pim@odoo.com> | 2017-04-06 17:30:30 +0200 |
|---|---|---|
| committer | pimodoo <pim@odoo.com> | 2017-07-24 10:53:36 +0200 |
| commit | e2a255717fb941fffa1fcc8ed0c5e390fba76618 (patch) | |
| tree | 5fbfb6af842f09e2bd4f408982e61e9a45236d48 /addons/document/static/src/js | |
| parent | 7333f5e9b8ac8909af45def63002bd26a234e79d (diff) | |
[FIX] stock: MTO move status
When we validate a SO with an MTO product, then an RFQ and a delivery
picking are created. The status of the delivery picking is in state
'confirmed', but should be 'waiting' as the delivery waits for a
specific delivery input.
The problem is caused by the unreserve method, which is called in the
'procurement_jit' module. This method only checks that a move has
ancestors to determine if the move should be in waiting or in confirmed,
which is not the case for our delivery move because the RFQ has not been
validated yet so there is not ancestors yet.
To fix this issue, we check the 'procure_method' of the move, and if it
is in 'make_to_order' we put it in 'waiting' instead of 'confirmed'.
We also fixed the function recalculate_move_state that could cause the
same problem.
Diffstat (limited to 'addons/document/static/src/js')
0 files changed, 0 insertions, 0 deletions
