diff options
| author | Josse Colpaert <jco@odoo.com> | 2016-10-26 21:40:40 +0200 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2016-10-27 17:34:43 +0200 |
| commit | 7a65ec28b931e1e89cca7b8e9392b084010207d0 (patch) | |
| tree | b70634a4425160440528405175339ee51fffec35 /addons/web_planner/models/web_planner.py | |
| parent | 135a5daeb83c3deac0a0be968d5e7cb24cfa30de (diff) | |
[FIX] mrp: extra moves set correct quantity_done and product_uom_qty
Before, when we consumed 3 instead of 1 in a production order, it
gave a traceback. It was because it created moves
with negative quantities. So, something was wrong with
the quantity_done/product_uom_qty set when creating the extra moves
When creating an extra move because of the procurement,
but you still need to split afterwards (e.g. procurement 10, production order 12, you do 11),
then you should have a difference between quantity_done and product_uom_qty
in the extra move and not try to change it on the original.
That way, we make sure we pass the correct quantities.
Diffstat (limited to 'addons/web_planner/models/web_planner.py')
0 files changed, 0 insertions, 0 deletions
