[FIX] report_task : report_task_user_pipeline_open was having no uniqueness
authorSME(Tiny/Axelor) <>
Fri, 21 Aug 2009 13:46:48 +0000 (19:16 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 21 Aug 2009 13:46:48 +0000 (19:16 +0530)
lp bug: https://launchpad.net/bugs/415218 fixed

bzr revid: jvo@tinyerp.com-20090821134648-h2uf22ewnewsw5n3

addons/report_task/report_task.py

index 5fa7365..8f10ac4 100644 (file)
@@ -40,7 +40,7 @@ class  report_task_user_pipeline_open (osv.osv):
         cr.execute('''
             create or replace view report_task_user_pipeline_open as (
                 select
-                    u.id as id,
+                    min(t.id) as id,
                     u.id as user_id,
                     u.company_id as company_id,
                     count(t.*) as task_nbr,