diff options
| author | Pierre Masereel <pim@odoo.com> | 2018-11-07 16:11:55 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2018-11-07 16:11:55 +0000 |
| commit | ba18cf7fdc8712e2f5c85869a87bd5e991db3a40 (patch) | |
| tree | 00aaff86360d5e70126e2f89ae57a427d62ebc74 | |
| parent | c99a6d2fb5b22bdbdf36b49e0df508a0224d4b77 (diff) | |
[FIX] stock: use self instead of picking
In the compute function _compute_move_without_package, we use self
instead of picking variable, which leads to traceback when more than one
picking is computed
closes odoo/odoo#28482
| -rw-r--r-- | addons/stock/models/stock_picking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index 9f84b009cce..1157559ead6 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -640,7 +640,7 @@ class Picking(models.Model): move_ids_without_package |= move else: move_ids_without_package |= move - self.move_ids_without_package = move_ids_without_package + picking.move_ids_without_package = move_ids_without_package def _set_move_without_package(self): self.move_lines |= self.move_ids_without_package |
