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

I developed a new report for account.invoice in odoo 14 but upon printing here is the error:


The report's template 'NEW INVOICE' is wrong, please contact your administrator.

Can not separate file to save as attachment because the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname.


Solution: Dont forget to add t t-set="print_custom" t-value="True"/> in the report_invoice_custom you created 

 

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

The title of your question is not related to your issue, please use a meaningful title. Also, without any further information, there is not more to say as already stated in your error message. Please read the developer documentation and look at the existing reports.

أفضل إجابة

If you only want to customize the invoice layout and report, you do not need to create new reports. You can simply choose the external layout that fits best to your needs and inherit it. For the content of the invoice itself, inherit the view report_invoice_document.

الصورة الرمزية
إهمال
الكاتب

i want to create a new report. i dupliated the report_invoice and report_invoice_document and edited it accordingly. i also created the external indentifiers.

That's not a real answer mate, what if I do want to create a new report?

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 22
6410
0
سبتمبر 21
1598
1
يونيو 21
2375
1
أبريل 24
1790
2
ديسمبر 23
2617