[IMP] delivery: use convert method instead of deprecated _compute
As _compute has been deprecated and this does not make runbot happy Comign from: #24179 Task-1829827
This commit is contained in:
@@ -258,7 +258,7 @@ class DeliveryCarrier(models.Model):
|
||||
'warning_message': False}
|
||||
price = self.fixed_price
|
||||
if self.company_id and self.company_id.currency_id.id != order.currency_id.id:
|
||||
price = self.env['res.currency']._compute(self.company_id.currency_id, order.currency_id, price)
|
||||
price = self.company_id.currency_id._convert(price, order.currency_id, self.company_id, fields.Date.today())
|
||||
return {'success': True,
|
||||
'price': price,
|
||||
'error_message': False,
|
||||
|
||||
Reference in New Issue
Block a user