Skip to Content
मेन्यू
This question has been flagged
3 Replies
3412 Views

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'

Avatar
Discard

please provide the report action code

Best Answer

Try to add binding_type in the report record in xml:


Avatar
Discard

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

Best Answer

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
...

Avatar
Discard
Author Best Answer

Still the same error

Avatar
Discard
Related Posts Replies Views Activity
1
मई 24
3185
0
अक्तू॰ 23
5
2
सित॰ 24
1927
0
अप्रैल 24
2489
0
नव॰ 23
2168