[FIX] point_of_sale: correct variable access

oversight of previous forward-port
This commit is contained in:
Christophe Simonis
2016-10-27 18:33:35 +02:00
parent 3bb022d57c
commit dc62cd8e00
+1 -4
View File
@@ -627,11 +627,8 @@ class PosOrder(models.Model):
StockProductionLot = self.env['stock.production.lot']
PosPackOperationLot = self.env['pos.pack.operation.lot']
if not picking:
picking = order.picking_id
for order in self:
for pack_operation in picking.pack_operation_ids:
for pack_operation in (picking or self.picking_id).pack_operation_ids:
qty = 0
qty_done = 0
pack_lots = []