[IMP]add tooltip on type and add date,date_Start in on change template

bzr revid: sgo@tinyerp.com-20120626094843-ubz386g7f42jc2d2
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-06-26 15:18:43 +05:30
parent 952dbcf8bb
commit fe938a4558
2 changed files with 7 additions and 1 deletions

View File

@ -485,6 +485,8 @@ class account_analytic_account(osv.osv):
return {}
res = {'value':{}}
template = self.browse(cr, uid, template_id, context=context)
res['value']['date_start'] = template.date_start
res['value']['date'] = template.date
res['value']['fix_price_invoices'] = template.fix_price_invoices
res['value']['invoice_on_timesheets'] = template.invoice_on_timesheets
res['value']['quantity_max'] = template.quantity_max

View File

@ -156,7 +156,11 @@ class account_analytic_account(osv.osv):
'name': fields.char('Account Name', size=128, required=True),
'complete_name': fields.function(_complete_name_calc, type='char', string='Full Account Name'),
'code': fields.char('Code/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.'),
'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"\
"If you select Analytic account.It means you can create journal entries using that account.\n"\
"If you select Contract or Project,It means you create contract for that account.\n"\
"If you select Template of Project,It means you create Template of project\contract which can be used as a parent of contract."),
'description': fields.text('Description'),
'parent_id': fields.many2one('account.analytic.account', 'Parent Analytic Account', select=2),
'child_ids': fields.one2many('account.analytic.account', 'parent_id', 'Child Accounts'),