[IMP] improve code

bzr revid: fka@tinyerp.com-20120924111318-be0zi7vkqffqy8tq
This commit is contained in:
Foram Katharotiya (OpenERP) 2012-09-24 16:43:18 +05:30
parent f7f2e07e04
commit 5980921d61
2 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@
<field name="model">account.analytic.account</field>
<field name="arch" type="xml">
<graph string="Analytic Account Statistics" type="bar">
<field name="complete_name"/>
<field name="name"/>
<field name="balance" operator="+"/>
</graph>
</field>

View File

@ -138,7 +138,7 @@ class account_analytic_account(osv.osv):
_columns = {
'name': fields.char('Account/Contract Name', size=128, required=True),
'complete_name': fields.function(_complete_name_calc, type='char', string='Full Account Name',store=True),
'complete_name': fields.function(_complete_name_calc, type='char', string='Full Account Name'),
'code': fields.char('Reference', size=24, select=True),
'type': fields.selection([('view','Analytic View'), ('normal','Analytic Account'),('contract','Contract or Project'),('template','Template of Project')], 'Type of Account', required=True,
help="If you select the View Type, it means you won\'t allow to create journal entries using that account.\n"\