diff --git a/addons/account/account_bank.py b/addons/account/account_bank.py index 54cba015f8e..5a84dee53de 100644 --- a/addons/account/account_bank.py +++ b/addons/account/account_bank.py @@ -26,6 +26,8 @@ class bank(osv.osv): _inherit = "res.partner.bank" _columns = { 'journal_id': fields.many2one('account.journal', 'Account Journal', help="This journal will be created automatically for this bank account when you save the record"), + 'currency_id': fields.related('journal_id', 'currency', type="many2one", relation='res.currency', readonly=True, + string="Currency", help="Currency of the related account journal."), } def create(self, cr, uid, data, context={}): result = super(bank, self).create(cr, uid, data, context=context) diff --git a/addons/account/account_bank_view.xml b/addons/account/account_bank_view.xml index 1a0e26e7c1f..8d0b1aa5db3 100644 --- a/addons/account/account_bank_view.xml +++ b/addons/account/account_bank_view.xml @@ -16,12 +16,26 @@ + + + Partner Bank Accounts - Add currency on tree + res.partner.bank + tree + + + + + + + + + Setup your Bank Accounts res.partner.bank