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

I want to edit the template for invoices.

First I have edit the report xml template over settings

Now I'm looking for the xms template for invoices to customize it, but I can not find it in odoo v17?

I thought this should be under addons/sale/report/sale_report_template.xml?

 

形象
丢弃
编写者 最佳答案

thx - i have found the file now:

+ I just add a simple "Hello world" to the file and saved it on line 260 (before Payment Communication)

+ When I create an invoice the "Hello World" is not shown?

do i have to click somewhere that the file is live?


形象
丢弃
最佳答案

Navigate to Settings --> Technical --> Actions --> Reports (in Developer Mode) to see each Report

The main Invoices report has the template name "account.report_invoice_with_payments" which means it is defined in the account module.

You can find the XML at addons/account/views/report_invoice.xml


形象
丢弃
最佳答案

Hi,

You can find the invoice template in the following path:  /odoo/addons/account/views/report_invoice.xml

name of the template:  report_invoice_document

* To find the template of any report, you can do as follows
* activate the developer mode
* navigate to Reports menu under settings -> technical
* search and open the report
* by clicking the Qweb Views smart button, you can see the templates used



Thanks

形象
丢弃
相关帖文 回复 查看 活动
0
1月 25
669
1
5月 24
1745
3
2月 24
32337
2
11月 24
967
0
1月 24
1039