[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
This commit is contained in:
Pierre Masereel
2018-11-07 16:11:55 +00:00
parent c99a6d2fb5
commit ba18cf7fdc
+1 -1
View File
@@ -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