Skip to Content
Menú
This question has been flagged
3 Respostes
3222 Vistes

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
Descartar

please provide the report action code

Best Answer

Try to add binding_type in the report record in xml:


Avatar
Descartar

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
Descartar
Autor Best Answer

Still the same error

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 24
2940
0
d’oct. 23
5
2
de set. 24
1763
0
d’abr. 24
2346
0
de nov. 23
1979