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'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
3
回复
4197
查看
Try to add binding_type in the report record in xml:

can you show me on video i want learn if you can ?
https://www.youtube.com/watch?v=nF1PRDdUFds from CybroSis
https://www.youtube.com/watch?v=_E-lxkawlbs from Odoo Mates
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
|
4503 | ||
|
|
0
10月 23
|
5 | ||
|
|
2
9月 24
|
3037 | ||
|
|
0
4月 24
|
3206 | ||
|
|
0
11月 23
|
2875 |
please provide the report action code