Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3366 Lượt xem

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'

Ảnh đại diện
Huỷ bỏ

please provide the report action code

Câu trả lời hay nhất

Try to add binding_type in the report record in xml:


Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Still the same error

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
3132
0
thg 10 23
5
2
thg 9 24
1892
0
thg 4 24
2464
0
thg 11 23
2115