Skip to content

Commit

Permalink
[12.0][FIX/MIG] stock_cycle_count: fix zero confirmation rules.
Browse files Browse the repository at this point in the history
Now zero-qty quants are not removed straight away but by a cron job.
Therefore, we have to also check that the quants are not zero-qty ones.
  • Loading branch information
LoisRForgeFlow committed Jul 8, 2019
1 parent 14552dd commit 8387920
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stock_cycle_count/models/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def _compute_loc_accuracy(self):
@api.multi
def _get_zero_confirmation_domain(self):
self.ensure_one()
domain = [('location_id', '=', self.id)]
domain = [
('location_id', '=', self.id),
('quantity', '>', 0.0),
]
return domain

@api.multi
Expand Down

0 comments on commit 8387920

Please sign in to comment.