diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-01-31 14:49:54 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-02-14 11:09:07 +0000 |
| commit | cb618e9a99ea3b86fdeed0295168a1e9fd7cddc3 (patch) | |
| tree | a44f52c18bd9b768eda694ea934a242fd31e5ed8 /addons/procurement_jit | |
| parent | b328ddda2089792e43eef44058e1f5a31e00354a (diff) | |
[IMP] stock: _assign_picking in batch
Only search once for batch of moves that should be assign
to the same picking and assign them all at once.
Since the moves are processed in batch for a picking
commit 8fe8ca9 is not needed anymore.
closes odoo/odoo#30699
Diffstat (limited to 'addons/procurement_jit')
| -rw-r--r-- | addons/procurement_jit/sale.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/procurement_jit/sale.py b/addons/procurement_jit/sale.py index 9ad3cf50b1d..c6e638ee721 100644 --- a/addons/procurement_jit/sale.py +++ b/addons/procurement_jit/sale.py @@ -8,8 +8,8 @@ class SaleOrderLine(models.Model): _inherit = "sale.order.line" @api.multi - def _action_launch_stock_rule(self): - res = super(SaleOrderLine, self)._action_launch_stock_rule() + def _action_launch_stock_rule(self, previous_product_uom_qty=False): + res = super(SaleOrderLine, self)._action_launch_stock_rule(previous_product_uom_qty=previous_product_uom_qty) orders = list(set(x.order_id for x in self)) for order in orders: reassign = order.picking_ids.filtered(lambda x: x.state=='confirmed' or (x.state in ['waiting', 'assigned'] and not x.printed)) |
