[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:
Mohammed Shekha
2019-05-16 04:32:43 +00:00
parent 35b778590a
commit dd182c8eb3
+1 -1
View File
@@ -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,