Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2380 มุมมอง

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!'))"

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ธ.ค. 24
4559
Expect singleton: res.currency[SOLVED] แก้ไขแล้ว
2
มิ.ย. 23
4396
0
ส.ค. 21
5029
0
เม.ย. 18
8505
How to customize qweb report ? แก้ไขแล้ว
1
ธ.ค. 17
7949