[IMP]improve code and add tooltip on task_management
bzr revid: sgo@tinyerp.com-20120625063233-9w7pf3eg16ok4kyj
This commit is contained in:
parent
96a7642669
commit
fdc196343f
|
@ -123,7 +123,7 @@ class account_analytic_account(osv.osv):
|
||||||
if template_id and 'value' in res:
|
if template_id and 'value' in res:
|
||||||
template = self.browse(cr, uid, template_id, context=context)
|
template = self.browse(cr, uid, template_id, context=context)
|
||||||
res['value']['charge_expenses'] = template.charge_expenses
|
res['value']['charge_expenses'] = template.charge_expenses
|
||||||
res['value']['expense_max'] = template.expense_max
|
res['value']['est_expenses'] = template.est_expenses
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def open_hr_expense(self, cr, uid, ids, context=None):
|
def open_hr_expense(self, cr, uid, ids, context=None):
|
||||||
|
|
|
@ -1219,7 +1219,7 @@ class account_analytic_account(osv.osv):
|
||||||
_inherit = 'account.analytic.account'
|
_inherit = 'account.analytic.account'
|
||||||
_description = 'Analytic Account'
|
_description = 'Analytic Account'
|
||||||
_columns = {
|
_columns = {
|
||||||
'use_tasks': fields.boolean('Tasks Management'),
|
'use_tasks': fields.boolean('Tasks Management',help="If check,this contract will be available in the project menu and you will be able to manage tasks or track issues"),
|
||||||
'company_uom_id': fields.related('company_id', 'project_time_mode_id', type='many2one', relation='product.uom'),
|
'company_uom_id': fields.related('company_id', 'project_time_mode_id', type='many2one', relation='product.uom'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue