diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 9f3c2abacef..c21df95feaa 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -348,6 +348,8 @@ class AccountMove(models.Model): @api.onchange('date', 'currency_id') def _onchange_currency(self): + if not self.currency_id: + return if self.is_invoice(include_receipts=True): company_currency = self.company_id.currency_id has_foreign_currency = self.currency_id and self.currency_id != company_currency