Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3358 Widoki

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'

Awatar
Odrzuć

please provide the report action code

Najlepsza odpowiedź

Try to add binding_type in the report record in xml:


Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Still the same error

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
3125
0
paź 23
5
2
wrz 24
1884
0
kwi 24
2459
0
lis 23
2113