Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
3363 Visninger

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
Kassér

please provide the report action code

Bedste svar

Try to add binding_type in the report record in xml:


Avatar
Kassér

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

Bedste svar

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
Kassér
Forfatter Bedste svar

Still the same error

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
maj 24
3128
0
okt. 23
5
2
sep. 24
1889
0
apr. 24
2461
0
nov. 23
2114