Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
3381 Näkymät

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
Hylkää

please provide the report action code

Paras vastaus

Try to add binding_type in the report record in xml:


Avatar
Hylkää

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

Paras vastaus

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
Hylkää
Tekijä Paras vastaus

Still the same error

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 24
3154
0
lokak. 23
5
2
syysk. 24
1909
0
huhtik. 24
2478
0
marrask. 23
2136