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

I created action and template as in odoo16 docs, but when I click on print button I got error: AssertionError: Call _get_view_id, expected 'ir.ui.view', got 'ir.actions.report'

อวตาร
ละทิ้ง

please provide the report action code

คำตอบที่ดีที่สุด

Try to add binding_type in the report record in xml:


อวตาร
ละทิ้ง

can you show me on video i want learn if you can ?

คำตอบที่ดีที่สุด

I faced the same error, My issue was that I was not passing the template id in field 'report_name' instead I was passing the the report id
   

...
​module_name.my_report_template
...

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Still the same error

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
3038
0
ต.ค. 23
5
2
ก.ย. 24
1812
0
เม.ย. 24
2397
0
พ.ย. 23
2054