diff --git a/addons/analytic/analytic.py b/addons/analytic/analytic.py index ff09349b8a2..d71b480f799 100644 --- a/addons/analytic/analytic.py +++ b/addons/analytic/analytic.py @@ -163,7 +163,7 @@ class account_analytic_account(osv.osv): 'date': fields.date('Date End', select=True), 'company_id': fields.many2one('res.company', 'Company', required=False), #not required because we want to allow different companies to use the same chart of account, except for leaf accounts. 'state': fields.selection([('template', 'Template'),('draft','New'),('open','In Progress'), ('cancelled', 'Cancelled'),('pending','To Renew'),('close','Closed')], 'Status', required=True,), - 'currency_id': fields.function(_currency, fnct_inv=_set_company_currency, + 'currency_id': fields.function(_currency, fnct_inv=_set_company_currency, #the currency_id field is readonly except if it's a view account and if there is no company store = { 'res.company': (_get_analytic_account, ['currency_id'], 10), }, string='Currency', type='many2one', relation='res.currency'), diff --git a/addons/analytic/analytic_view.xml b/addons/analytic/analytic_view.xml index 51f5428002f..e434332f26b 100644 --- a/addons/analytic/analytic_view.xml +++ b/addons/analytic/analytic_view.xml @@ -24,6 +24,7 @@ +