İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
3429 Görünümler

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
Vazgeç

please provide the report action code

En İyi Yanıt

Try to add binding_type in the report record in xml:


Avatar
Vazgeç

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

En İyi Yanı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
...

Avatar
Vazgeç
Üretici En İyi Yanıt

Still the same error

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 24
3219
0
Eki 23
5
2
Eyl 24
1949
0
Nis 24
2515
0
Kas 23
2183