Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2104 Prikazi

I'm trying to customize odoo default invoices report.

Here is my code in XML file:

xml version="1.0" encoding="utf-8"?><odoo>

<templateid="report_invoice_inherit_demo"inherit_id="account.report_invoice_document"><xpathexpr="//div[@id='total']/div/table/t"position="after">

<tr><td><span>Advanced Payment Amount span>
td><tdclass="text-right"><spant-field="o.advanced_payment_amount"/>td>tr><tr><td><span>Guarantee Amountspan>
td><tdclass="text-right"><spant-field="o.guarantee_amount"/>td>tr><tr><td><span>Retention Amount span>
td><tdclass="text-right"><spant-field="o.retention_amount"/>td>tr><tr><td><span>Deduction Total span>
td><tdclass="text-right"><spant-field="o.deduction_total"/>td>tr>xpath>template>

odoo>




I have also mentioned account module in depends in manifest file, but it is not working yet ,Does anyone have any idea why it is not working?
Avatar
Opusti
Best Answer

Hi,

Are you getting any errors from the above code ? If yes, kindly share the error message along with the question.

Also you can check the below code from "Indian - E-invoicing" module in Odoo that inherit and modify invoice report.

See: https://github.com/odoo/odoo/blob/15.0/addons/l10n_in_edi/views/edi_pdf_report.xml


Thanks & Regards

Avatar
Opusti
Avtor

Unfortunately, I'm not getting any errors, I have already checked the Github link but in vain.