تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
3359 أدوات العرض

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'

الصورة الرمزية
إهمال

please provide the report action code

أفضل إجابة

Try to add binding_type in the report record in xml:


الصورة الرمزية
إهمال

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

أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Still the same error

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 24
3125
0
أكتوبر 23
5
2
سبتمبر 24
1886
0
أبريل 24
2459
0
نوفمبر 23
2114