Merge lp:~openerp-dev/openobject-addons/6.1-opw-586446-mma into lp:openobject-addons/6.1

Proposed by Mayur Maheshwari(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-586446-mma
Merge into: lp:openobject-addons/6.1
Diff against target: 35 lines (+10/-7)
1 file modified
project/project.py (+10/-7)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-586446-mma
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+149231@code.launchpad.net

Description of the change

Hello,

Open Project -> Reporting -> Task -> cumulative flow ,
click on project(my projects filter) gives error

This Branch Fixed this issue
code back-ported from 7.0

Thanks,
Mayur

To post a comment you must log in.

Unmerged revisions

7156. By Mayur Maheshwari(OpenERP)

[FIX]project: fixed traceback when click on project_id in cumulative serch view

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'project/project.py'
--- project/project.py 2012-08-29 10:56:45 +0000
+++ project/project.py 2013-02-19 09:42:32 +0000
@@ -1217,7 +1217,7 @@
1217 _auto = False1217 _auto = False
1218 _columns = {1218 _columns = {
1219 'end_date': fields.date('End Date'),1219 'end_date': fields.date('End Date'),
1220 'project_id': fields.related('task_id', 'project_id', string='Project', type='many2one', relation='project.project')1220 'project_id': fields.many2one('project.project', 'Project'),
1221 }1221 }
1222 def init(self, cr):1222 def init(self, cr):
1223 cr.execute(""" CREATE OR REPLACE VIEW project_task_history_cumulative AS (1223 cr.execute(""" CREATE OR REPLACE VIEW project_task_history_cumulative AS (
@@ -1227,13 +1227,16 @@
1227 *1227 *
1228 FROM (1228 FROM (
1229 SELECT1229 SELECT
1230 id as history_id,1230 h.id AS history_id,
1231 date+generate_series(0, CAST((coalesce(end_date,DATE 'tomorrow')::date - date)AS integer)-1) as date,1231 h.date+generate_series(0, CAST((coalesce(h.end_date, DATE 'tomorrow')::date - h.date) AS integer)-1) AS date,
1232 task_id, type_id, user_id, kanban_state, state,1232 h.task_id, h.type_id, h.user_id, h.kanban_state, h.state,
1233 remaining_hours, planned_hours1233 greatest(h.remaining_hours, 1) AS remaining_hours, greatest(h.planned_hours, 1) AS planned_hours,
1234 t.project_id
1234 FROM1235 FROM
1235 project_task_history1236 project_task_history AS h
1236 ) as history1237 JOIN project_task AS t ON (h.task_id = t.id)
1238
1239 ) AS history
1237 )1240 )
1238 """)1241 """)
1239project_task_history_cumulative()1242project_task_history_cumulative()