跳至内容
菜单
此问题已终结
3 回复
3398 查看

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'

形象
丢弃

please provide the report action code

最佳答案

Try to add binding_type in the report record in xml:


形象
丢弃

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

最佳答案

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

形象
丢弃
编写者 最佳答案

Still the same error

形象
丢弃
相关帖文 回复 查看 活动
1
5月 24
3168
0
10月 23
5
2
9月 24
1917
0
4月 24
2481
0
11月 23
2158