Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
3373 Prikazi

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
Opusti

please provide the report action code

Best Answer

Try to add binding_type in the report record in xml:


Avatar
Opusti

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
Opusti
Avtor Best Answer

Still the same error

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 24
3134
0
okt. 23
5
2
sep. 24
1896
0
apr. 24
2467
0
nov. 23
2125