diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 2329c551de6..681394a944a 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1406,7 +1406,7 @@ class AccountMove(models.Model): @api.depends('currency_id') def _compute_display_inactive_currency_warning(self): for move in self.with_context(active_test=False): - move.display_inactive_currency_warning = move.currency_id and not move.currency_id.active + move.display_inactive_currency_warning = move.state == 'draft' and move.currency_id and not move.currency_id.active @api.depends('company_id.account_fiscal_country_id', 'fiscal_position_id', 'fiscal_position_id.country_id', 'fiscal_position_id.foreign_vat') def _compute_tax_country_id(self):