Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
3377 Ansichten

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
Verwerfen

please provide the report action code

Beste Antwort

Try to add binding_type in the report record in xml:


Avatar
Verwerfen

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

Beste Antwort

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
Verwerfen
Autor Beste Antwort

Still the same error

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 24
3146
0
Okt. 23
5
2
Sept. 24
1907
0
Apr. 24
2473
0
Nov. 23
2132