Use all categories for matching lines

issue6881
review41631002
This commit is contained in:
Sergi Almacellas Abellana
2017-10-27 13:19:36 +02:00
parent 5b4ec108bd
commit aacbd0ca8c
+1 -1
View File
@@ -144,7 +144,7 @@ class Plan(ModelSQL, ModelView):
if pattern is None:
pattern = {}
if product:
pattern['categories'] = [c.id for c in product.categories]
pattern['categories'] = [c.id for c in product.categories_all]
pattern['product'] = product.id
else:
pattern['categories'] = []