Skip to content

Commit

Permalink
Little enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyril Gaudin committed Aug 16, 2016
1 parent 3740d6c commit 60bf001
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions stock_batch_picking/wizard/batch_picking_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ def _default_picker_id(self):
('company_id', '=', self.env.user.company_id.id)
], limit=1)

if warehouse:
warehouse = warehouse[0]
else:
warehouse = False

return warehouse.default_picker_id if warehouse else False
return warehouse.default_picker_id

@api.multi
def action_create_batch(self):
Expand Down

0 comments on commit 60bf001

Please sign in to comment.