تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2565 أدوات العرض

Hello,

I passed SQL query result to qweb report but the result is not rendered. I used the Postgres function to get the result,  I used function to use SQL function rank based on passed parameters. Views return all the results so the ranking based on some parameters didn't work.


"

self.env.cr.execute("""SELECT id,region,city,year,kpi,result,level,rank_no from kpi_rank('2', 2)""")
results = self.env.cr.fetchall()

if results is not None:
return self.env.ref('kpi.action_kpi_rank_status_report').report_action(results)
else:
raise UserError(_('No result found!'))"

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
ديسمبر 24
4920
2
يونيو 23
4736
0
أغسطس 21
5241
0
أبريل 18
8745
1
ديسمبر 17
8129