Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2494 Tampilan

We would like to inherit view account.report_invoice_document and completely replace its content with our own. How to do that?


Our intention is to generate completely different PDF output from scratch, without header and footer.


Thanks for any help.

Avatar
Buang
Jawaban Terbai

Hello, I am not able to add code, but here is how I would proceed: 

1)overide the template with template, inherit_id; template id="report_invoice_inherit" inherit_id="account.report_invoice"

2)replace web.external_layout with its xpath; xpath expr='//t[@t-call="account.report_invoice_document"]' position="replace" 

Hopes it helps







       

          

               
         

   


Avatar
Buang
Jawaban Terbai

Hi,

Try this code:

<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="/t[@t-call="account.report_invoice_document"]" position="replace">
                <div>
                    <!-- code -->
                </div>
            </xpath>
</template>


Hope it helps

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 20
4445
1
Des 23
1763
3
Jul 17
10651
1
Nov 15
11708
1
Agu 24
2204