I want to hide some elements from account.report_invoice_document template
. I don't want those elements in the PDF report.
How can I achieve this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
Refer the blog for inheriting and modifying existing reports.
https://www.odoo.yenthevg.com/inheriting-and-modifying-qweb-reports/
https://www.cybrosys.com/blog/modifying-existing-qweb-reports-in-odoo13
Hi Kiran,
I tried inheriting and replacing. While replacing I'm getting error.
Hi,
You can inherit account report as follows:
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//div[@class='page']/h2[1]" position="after">
<div class="col-4">
<img t-if="o.l10n_sa_qr_code_str"
style="display:block;margin:10% auto 0 auto;"
t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s'%('QR', o.l10n_sa_qr_code_str, 150, 150)"/>
</div>
</xpath>
</template>
For more reference, see this: https://www.youtube.com/watch?v=l2tvrpfOR1E
Thanks
Hi Niyas,
I tried inheriting and replacing. While replacing I'm getting error.
try to share the error in comment or question
Hi, I don't have the answer to your question but I'm trying to post a new subject on the forum but evreytime an error page appears, why ?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 20
|
1220 | ||
|
1
Jan 20
|
7379 | ||
|
4
Nov 24
|
5236 | ||
|
1
Mar 24
|
397 | ||
|
3
Sep 23
|
22651 |