Skip to Content
Menu
This question has been flagged
3 Replies
3371 Rodiniai

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'

Portretas
Atmesti

please provide the report action code

Best Answer

Try to add binding_type in the report record in xml:


Portretas
Atmesti

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

Portretas
Atmesti
Autorius Best Answer

Still the same error

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
geg. 24
3133
0
spal. 23
5
2
rugs. 24
1894
0
bal. 24
2466
0
lapkr. 23
2124