Переопределить метод pricing_policy() в apps/partner/strategy.py
Например
def rate_partner(self, partner_code):
exchange_rate = ExchangeRates.objects.filter(partner__code=partner_code).latest('date_created')
return exchange_rate.rate
def pricing_policy(self, product, stockrecord):
# Check stockrecord has the appropriate data
if not stockrecord or stockrecord.price_excl_tax is None:
return prices.Unavailable()
return prices.FixedPrice(
currency=stockrecord.price_currency,
excl_tax=stockrecord.price_excl_tax*self.rate_partner('my_partner'),
tax=D('0.00'))