Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
3183 Visualizações

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
Cancelar

please provide the report action code

Melhor resposta

Try to add binding_type in the report record in xml:


Avatar
Cancelar

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

Melhor resposta

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
Cancelar
Autor Melhor resposta

Still the same error

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mai. 24
2917
0
out. 23
5
2
set. 24
1749
0
abr. 24
2343
0
nov. 23
1969