Skip to content

Commit

Permalink
[FIX] point_of_sale: correct variable access
Browse files Browse the repository at this point in the history
oversight of previous forward-port
  • Loading branch information
KangOl committed Oct 27, 2016
1 parent 3bb022d commit dc62cd8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions addons/point_of_sale/models/pos_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,8 @@ def set_pack_operation_lot(self, picking=None):
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 = []
Expand Down

0 comments on commit dc62cd8

Please sign in to comment.