diff options
| author | Pierre Masereel <pim@odoo.com> | 2017-11-20 11:33:44 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-11-24 15:34:53 +0100 |
| commit | f59e96f0147a3ce90ee56e5390feb9bcbc57b806 (patch) | |
| tree | 454cfa212be2fddd58aec5ba4036af7ca9987aba /addons/base_setup | |
| parent | 72799e1f02282978a770473362bff2202961cf19 (diff) | |
[FIX] stock: packages and reservation
When the result packaged is changed on a move line, we should not change
the reservation of quants, because result_package is not related to
reservation, only package_id is used during the reservation.
We also changed the copy of move_line when we split a move line to put a
part of it in a package. By copying the move line and set the
product_uom_id in the default values of copy function, we mess the
reservation, because there is no quant reservation made for the move
line even if the move_line has a product_uom_qty. So we set the
product_uom_qty to 0 when copying the line, and then write the
product_uom_qty which will call the quant reservation
Fixes #20784
Diffstat (limited to 'addons/base_setup')
0 files changed, 0 insertions, 0 deletions
