[FIX] project: remove state field from task analys
authorDenis Ledoux <dle@odoo.com>
Thu, 24 Jul 2014 17:41:15 +0000 (19:41 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 24 Jul 2014 17:41:15 +0000 (19:41 +0200)
The state has been replaced by stage_id in the view, so the state is no longer used
Moreover, when doing an advanced search, the field state is visible and if used -> Traceback (because not available in the report sql table)
opw-609984

addons/project/report/project_report.py

index 5a47346..30a6110 100644 (file)
@@ -50,7 +50,6 @@ class report_project_task_user(osv.osv):
         'nbr': fields.integer('# of tasks', readonly=True),
         'priority': fields.selection([('4', 'Very Low'), ('3', 'Low'), ('2', 'Medium'), ('1', 'Urgent'), ('0', 'Very urgent')],
             string='Priority', readonly=True),
-        'state': fields.selection([('draft', 'Draft'), ('open', 'In Progress'), ('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')],'Status', readonly=True),
         'company_id': fields.many2one('res.company', 'Company', readonly=True),
         'partner_id': fields.many2one('res.partner', 'Contact', readonly=True),
         'stage_id': fields.many2one('project.task.type', 'Stage'),