Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3218 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
1771
Change the Position of field in Xpath แก้ไขแล้ว
5
ก.ค. 24
93233
1
ธ.ค. 23
3147
how to overide abstract model method แก้ไขแล้ว
1
ธ.ค. 22
2304
1
พ.ค. 22
3804