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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
juil. 20
|
4441 | ||
|
1
déc. 23
|
1761 | ||
|
3
juil. 17
|
10650 | ||
|
1
nov. 15
|
11707 | ||
|
1
août 24
|
2204 |