コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2614 ビュー

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.

アバター
破棄
最善の回答

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







       

          

               
         

   


アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 20
4511
1
12月 23
1831
3
7月 17
10758
1
11月 15
11767
1
8月 24
2259