diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 93adfb1fab7..a899ddcc5a7 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1133,7 +1133,7 @@ class AccountMove(models.Model): kwargs = { 'base_lines': base_line_values_list, - 'currency': move.currency_id, + 'currency': move.currency_id or move.journal_id.currency_id or move.journal_id.company_id.currency_id, } if move.id: diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py index e1468fc3ba0..6122f85b035 100644 --- a/addons/purchase/models/purchase.py +++ b/addons/purchase/models/purchase.py @@ -194,7 +194,7 @@ class PurchaseOrder(models.Model): order_lines = order.order_line.filtered(lambda x: not x.display_type) order.tax_totals = self.env['account.tax']._prepare_tax_totals( [x._convert_to_tax_base_line_dict() for x in order_lines], - order.currency_id, + order.currency_id or order.company_id.currency_id, ) @api.depends('company_id.account_fiscal_country_id', 'fiscal_position_id.country_id', 'fiscal_position_id.foreign_vat')