[12.0][FIX/MIG] stock_cycle_count: fix zero confirmation rules.

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.
This commit is contained in:
Lois Rilo
2019-07-08 08:50:01 +02:00
committed by Mateu Griful
parent dcf10522b3
commit 856acc0829

View File

@@ -57,7 +57,10 @@ class StockLocation(models.Model):
@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