Skip to content

Commit

Permalink
take advantage of api.multi on check_zero_confirmation method
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed Mar 26, 2018
1 parent 0f92099 commit a6556c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stock_cycle_count/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class StockMove(models.Model):
@api.multi
def action_done(self):
super(StockMove, self).action_done()
for move in self:
move.location_id.check_zero_confirmation()
self.mapped("location_id").check_zero_confirmation()
return True

0 comments on commit a6556c8

Please sign in to comment.