Skip to Content
Menú
This question has been flagged

Hello,

In order to custom invoice template I try to inherit from account.report_invoice_with_payments in order to call my own template but it don't work.


Below my implementation


id="report_invoice_with_payments_inherit_doodoo"inherit_id="account.report_invoice_with_payments">

expr="//t[@t-call='web.html_container']"position="replace">

    t-call="web.html_container">

        t-foreach="docs"t-as="o">

            

class="article"t-att-data-oe-model="o and o._name"t-att-data-oe-id="o and o.id"t-att-data-oe-lang="o and o.env.context.get('lang')">

            

                t-set="lang"t-value="o.partner_id.lang"/>

                t-set="print_with_payments"t-value="True"/>

                t-call="doodoo_sales_invoices_templates.report_invoice_document_inherit_doodoo"t-lang="lang"/>

        

    


My template doodoo_sales_invoices_templates.report_invoice_document_inherit_doodoo is not called and odoo cannot generate the pdf.


I can do what I want this by inherit from account.report_invoice_document and without doing nothing in account.report_invoice_with_payments but I would like to know if some templates are not inheritable.


Regards

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de nov. 24
1772
5
de jul. 24
93235
1
de des. 23
3149
1
de des. 22
2304
1
de maig 22
3804