跳至内容
菜单
此问题已终结
1 回复
2081 查看

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?
形象
丢弃
最佳答案

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

形象
丢弃
编写者

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