[FIX]: report_analytic_planning: improved search method

bzr revid: uco@tinyerp.co.in-20091217120011-znd2lxznuxdw0z70
This commit is contained in:
uco (OpenERP)
2009-12-17 17:30:11 +05:30
parent cc59a7ea95
commit 0ada27a1e5
@@ -198,6 +198,8 @@ class project_task(osv.osv):
}
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
if not context:
context = {}
if not context.get('planning'):
return super(project_task,self).search(cr, user, args, offset, limit, order, context)
cr.execute(" SELECT t.id, t.name \