Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang

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.

Jawaban Terbai

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
Buang
Penulis

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?

Post Terkait Replies Tampilan Aktivitas
2
Sep 22
6294
0
Sep 21
1525
1
Jun 21
2301
1
Apr 24
1562
2
Des 23
2240