İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
8458 Görünümler

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 

 

Avatar
Vazgeç

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.

En İyi Yanıt

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.

Avatar
Vazgeç
Üretici

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?

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 22
6438
0
Eyl 21
1644
1
Haz 21
2390
1
Nis 24
1852
2
Ara 23
2679