diff options
| author | Arnold Moyaux <arm@odoo.com> | 2020-01-30 16:00:55 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2020-02-13 13:56:31 +0000 |
| commit | 02fd561e7ed4ad19dc703b9e9d24033538d72eaa (patch) | |
| tree | 0640c786b1fea8d64566af0c5136fd536ca98e48 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 3b697753236cc46b9a2eb8aee8954b5835840983 (diff) | |
[FIX] mrp: wrong MO finished date
Usecase to reproduce:
- Create a product with 10 days manufacture lead time
- Create a procurement in order to fullfill a need the 01/15
The MO start date is the 01/05 that's the expected values
The MO finished date is the 01/05, 1 h later than the start date
It happens due to commit 92aeaa47ff592f3e40957ee092ca2245a1cc0781
This commit modified the wrong start date in order to take the
procurement date - manufacturing lead time. However it also
modified the finished date to 'the start date + 1h'. That returns
the problem to the opposite direction. Now the finished moves have
a wrong planning.
Fix it by using the production + company lead days when it's set
instead of 1h.
opw-2181962
X-original-commit: 6a5ce8de91d3ab2cb7f73127a6ee1c11578ccef9
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
