diff --git a/mcfix_account/models/account_bank_statement.py b/mcfix_account/models/account_bank_statement.py index 2501d10b..92a65a5e 100644 --- a/mcfix_account/models/account_bank_statement.py +++ b/mcfix_account/models/account_bank_statement.py @@ -23,7 +23,8 @@ def name_get(self): @api.onchange('company_id') def onchange_company_id(self): - self.journal_id = False + if self.company_id and self.journal_id.company_id != self.company_id: + self.journal_id = False def reconciliation_widget_preprocess(self): # This is the same code as the original method except for the fact