diff --git a/stock.py b/stock.py index e79aff4881..0d8d305c42 100644 --- a/stock.py +++ b/stock.py @@ -168,10 +168,9 @@ class Move(metaclass=PoolMeta): with Transaction().set_context( supplier=self.from_location.consignment_party.id): pattern = ProductSupplier.get_pattern() - for product_supplier in self.product.product_suppliers: - if product_supplier.match(pattern): - currency = product_supplier.currency - break + for product_supplier in self.product.product_suppliers_used(**pattern): + currency = product_supplier.currency + break else: currency = self.company.currency