[FIX] purchase: purchase count

After commit cb01be23, the states have changed.

opw-671989
This commit is contained in:
Nicolas Martinelli
2016-03-25 10:43:33 +01:00
parent cb435481c0
commit 62792a8ff6
+1 -1
View File
@@ -969,7 +969,7 @@ class ProductProduct(models.Model):
@api.multi
def _purchase_count(self):
domain = [
('state', 'in', ['confirmed', 'approved', 'done']),
('state', 'in', ['purchase', 'done']),
('product_id', 'in', self.mapped('id')),
]
r = {}