[IMP]improve code and add tooltip on task_management
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Mon, 25 Jun 2012 06:32:33 +0000 (12:02 +0530)
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Mon, 25 Jun 2012 06:32:33 +0000 (12:02 +0530)
bzr revid: sgo@tinyerp.com-20120625063233-9w7pf3eg16ok4kyj

addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py
addons/project/project.py

index 6baa857..8f24f12 100644 (file)
@@ -123,7 +123,7 @@ class account_analytic_account(osv.osv):
         if template_id and 'value' in res:
             template = self.browse(cr, uid, template_id, context=context)
             res['value']['charge_expenses'] = template.charge_expenses
-            res['value']['expense_max'] = template.expense_max
+            res['value']['est_expenses'] = template.est_expenses
         return res
 
     def open_hr_expense(self, cr, uid, ids, context=None):
index a6626aa..ab02cc8 100644 (file)
@@ -1219,7 +1219,7 @@ class account_analytic_account(osv.osv):
     _inherit = 'account.analytic.account'
     _description = 'Analytic Account'
     _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'),
     }