Use all categories for matching lines

issue6881
review42771002
This commit is contained in:
Sergi Almacellas Abellana committed 2017-10-27 13:19:15 +02:00
1 parent 3f32aa8c73
commit b72180bea7
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ class PriceList(ModelSQL, ModelView):
pattern = pattern.copy()
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
pattern['quantity'] = Uom.compute_qty(uom, quantity,
product.default_uom, round=False) if product else quantity