diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-03-21 14:06:15 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-04-12 12:50:34 +0000 |
| commit | 1fac19951747078fe92e2e35c61df2372fd90eda (patch) | |
| tree | 269fc7300e1e8d18e4ad585508e683aadc35e475 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 030db4a4b0885c55f637d67364a83c25e2f847f6 (diff) | |
[FIX] mrp: tracability on extra move line
Usecase to reproduce:
- BoM with final product tracked by SN
- Produce wizard add a component tracked by SN (not from BoM)
- Produce and mark the MO as done
The tracability report do not show the extra component used.
It happens because _record_production call _action_done on moves raw
and finished. _action_done create extra move with moves that created
more than expected (the purpose is to trigger rules). However in stock
the new move is created then merged in its parent but in mrp moves are
not merge. _record production set the tracability for initial moves but
ignore the extra moves created. So the tracability report is not
complete.
Fix it by catching the new moves created after _action_done and set
the consume_line_ids for the extra moves also.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
