From 2fe11b8a2aab16b6cb083407d28240e792668da7 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 23 Feb 2016 12:02:57 +0100 Subject: [PATCH] [FIX] account: bank statement currency If there is no currency set on the journal, the fallback currency must be the currency of the journal company, not the currency of the user company. This would mean that when you change of company, with another currency set, the bank statement change of currency, this is non-sense. opw-670187 --- addons/account/models/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 60f06a3feb5..31065200ce4 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -86,7 +86,7 @@ class AccountBankStatement(models.Model): @api.one @api.depends('journal_id') def _compute_currency(self): - self.currency_id = self.journal_id.currency_id or self.env.user.company_id.currency_id + self.currency_id = self.journal_id.currency_id or self.company_id.currency_id @api.one @api.depends('line_ids.journal_entry_ids')