mirror of
https://github.com/NaN-tic/trytond-product_price_list_manufacturer.git
synced 2023-12-14 02:22:54 +01:00
Add manufacturer pattern when have a product
This commit is contained in:
parent
32c235fc47
commit
93b959b3ae
|
@ -19,8 +19,9 @@ class PriceList:
|
|||
pattern=None):
|
||||
if pattern is None:
|
||||
pattern = {}
|
||||
pattern['manufacturer'] = (product.manufacturer
|
||||
and product.manufacturer.id or None)
|
||||
if product:
|
||||
pattern['manufacturer'] = product.manufacturer \
|
||||
and product.manufacturer.id or None
|
||||
return super(PriceList, self).compute(party, product, unit_price,
|
||||
quantity, uom, pattern)
|
||||
|
||||
|
|
Loading…
Reference in a new issue