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.
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_
<xpath expr="/t[@t-call="account.
<div>
<!-- code -->
</div>
</xpath>
</template>
Hope it helps
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
0
jul. 20
|
6509 | |||
|
1
dec. 23
|
3559 | |||
|
3
jul. 17
|
12669 | |||
|
1
nov. 15
|
13255 | |||
|
0
mar. 15
|
5553 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.