diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-02-19 13:31:54 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2020-02-20 11:11:17 +0000 |
| commit | 59dfbc08297a89c2a196c456c3b713716d638b77 (patch) | |
| tree | 562b38dd9519b5c70c48ea20b03e738655335aa3 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 4b629c7243e7a81b389b9080fe05e66df4b376ed (diff) | |
[FIX] mrp: fix count mo in sale order form
In case of MTO+Manufacture, a sale order have a count of
manufacturing order created from it :
1. create SO with MFG+MTO product with quantity of 5.
2. confirm it. MO will be created for 5 Nos.
3. increase it to 7 . another MO created for 2 Nos.
4. there are 2 MO created based on 1 SO.
It was due that new stock move was merge, and the
'created_production_id' info was lost during the merge (keep only
the original one). To fix, avoid merging stock move with distinct
'created_production_id' (done by override
'_prepare_merge_moves_distinct_fields' and
'_prepare_merge_move_sort_method' methods ).
task-2199568
closes odoo/odoo#45800
X-original-commit: 1fb32cfd17122b625d211a7d22ec319fba35e87f
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
