From cf1f11736290fd7701831238df286ac5be273b64 Mon Sep 17 00:00:00 2001 From: vrenaville Date: Wed, 29 Jul 2015 09:56:02 +0200 Subject: [PATCH] [FIX] related_sudo=False in order to get currency with the current user not admin --- .../models/bank_statement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_import_line_multicurrency_extension/models/bank_statement.py b/account_import_line_multicurrency_extension/models/bank_statement.py index 490100a5a..45e1c8c76 100644 --- a/account_import_line_multicurrency_extension/models/bank_statement.py +++ b/account_import_line_multicurrency_extension/models/bank_statement.py @@ -26,7 +26,8 @@ class AccountBankStatementLine(models.Model): currency_symbol = fields.Char( string='Journal Currency', - related='statement_id.currency.symbol', readonly=True) + related='statement_id.currency.symbol', + related_sudo=False, readonly=True) class AccountBankStatement(models.Model):