Ir al contenido
Menú
Se marcó esta pregunta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 24
1771
5
jul 24
93232
1
dic 23
3147
1
dic 22
2304
1
may 22
3803