Pierre Masereel
e2a255717f
[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.
2017-07-24 10:53:36 +02:00
..
2017-07-19 12:58:05 +02:00
2017-01-22 03:25:31 +01:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-06-11 00:27:53 +02:00
2017-06-18 00:26:56 +02:00
2017-06-11 00:27:53 +02:00
2017-06-18 00:26:56 +02:00
2017-04-02 00:32:12 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-03-12 02:54:51 +01:00
2017-01-22 03:25:31 +01:00
2017-06-11 00:27:53 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-12 18:12:16 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-13 08:35:40 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-01 02:39:14 +02:00
2017-07-06 12:09:30 +02:00
2017-01-22 03:25:31 +01:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-18 00:26:56 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-06-06 13:40:34 +02:00
2017-06-06 13:40:34 +02:00
2017-06-06 13:40:34 +02:00
2017-07-02 00:27:47 +02:00
2017-01-22 03:25:31 +01:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-06-18 00:26:56 +02:00
2017-06-01 02:40:07 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-03-12 02:54:51 +01:00
2017-07-01 02:39:14 +02:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-05-16 13:42:10 +02:00
2017-05-16 13:42:10 +02:00
2017-05-16 13:42:10 +02:00
2017-03-12 00:30:59 +01:00
2017-07-01 02:39:14 +02:00
2017-01-22 03:25:31 +01:00
2017-03-23 16:49:06 +01:00
2017-01-22 03:25:31 +01:00
2017-01-29 00:30:57 +01:00
2017-06-11 00:27:53 +02:00
2017-03-12 00:30:59 +01:00
2017-07-12 09:58:34 +02:00
2017-02-27 17:00:28 +01:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-01-29 00:30:57 +01:00
2017-03-12 02:54:51 +01:00
2017-07-01 02:39:14 +02:00
2017-03-31 12:10:22 +02:00
2017-03-12 02:54:51 +01:00
2017-03-12 00:30:59 +01:00
2017-05-21 00:28:50 +02:00
2017-03-19 02:55:34 +01:00
2017-07-01 02:39:14 +02:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-03-12 00:30:59 +01:00
2017-05-21 00:28:50 +02:00
2017-03-12 00:30:59 +01:00
2017-05-21 00:28:50 +02:00
2017-03-12 00:30:59 +01:00
2017-05-21 00:28:50 +02:00
2017-03-12 00:30:59 +01:00
2017-05-01 02:40:51 +02:00
2017-07-01 02:39:14 +02:00
2017-03-12 00:30:59 +01:00
2017-07-01 02:39:14 +02:00
2017-03-12 00:30:59 +01:00
2017-03-19 02:55:34 +01:00
2017-05-21 00:28:50 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-06-11 00:27:53 +02:00
2017-07-18 19:18:59 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-03-12 02:54:51 +01:00
2017-06-11 00:27:53 +02:00
2017-06-18 00:26:56 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-07-07 16:00:38 -07:00
2017-07-02 00:27:47 +02:00
2017-06-25 00:27:33 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-01 02:39:14 +02:00
2017-03-26 00:31:50 +01:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-04 00:28:17 +02:00
2017-06-18 00:26:56 +02:00
2017-07-20 13:44:43 +02:00
2017-07-01 02:39:14 +02:00
2017-06-18 00:26:56 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-11 00:27:53 +02:00
2017-07-02 00:27:47 +02:00
2017-07-20 10:21:03 +02:00
2017-07-01 02:39:14 +02:00
2017-03-26 00:31:50 +01:00
2017-07-02 00:27:47 +02:00
2017-07-10 15:07:43 +02:00
2017-05-01 02:40:51 +02:00
2017-06-18 00:26:56 +02:00
2017-05-09 12:04:52 +02:00
2017-07-02 00:27:47 +02:00
2017-04-11 15:00:14 +02:00
2017-07-13 08:34:20 +02:00
2017-07-24 10:53:36 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-05-14 00:28:46 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-06-18 00:26:56 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-11 00:27:53 +02:00
2017-06-25 00:27:33 +02:00
2017-06-25 00:27:33 +02:00
2017-06-11 00:27:53 +02:00
2017-03-12 02:54:51 +01:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-01 02:39:14 +02:00
2017-06-04 00:28:17 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-06-04 00:28:17 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-01 02:40:07 +02:00
2017-07-01 02:39:14 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-06-25 00:27:33 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-07-02 00:27:47 +02:00
2017-06-04 00:28:17 +02:00
2017-07-01 02:39:14 +02:00
2017-06-25 00:27:33 +02:00
2017-06-18 00:26:56 +02:00
2017-07-02 00:27:47 +02:00
2017-06-18 00:26:56 +02:00
2017-07-19 09:25:11 +02:00
2017-06-25 00:27:33 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-11 00:27:53 +02:00
2017-07-01 02:39:14 +02:00
2017-07-02 00:27:47 +02:00
2017-07-02 00:27:47 +02:00
2017-06-25 00:27:33 +02:00