콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2105 화면

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.