[FIX] stock: quant_package search location_id

This commit is contained in:
Pierre Masereel
2017-09-25 16:03:40 +02:00
parent 561b3461a0
commit e6f2ce245b
+1 -1
View File
@@ -362,7 +362,7 @@ class QuantPackage(models.Model):
else:
packs = self.search([('quant_ids', operator, value)])
if packs:
return [('id', 'parent_of', packs.ids)]
return [('id', 'in', packs.ids)]
else:
return [('id', '=', False)]