Skip to Content
Menu
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
Discard
Related Posts Replies Views Activity
1
Nov 24
102
5
Jul 24
86786
1
Dec 23
1811
1
Dec 22
1268
1
May 22
1814