跳至內容
選單
此問題已被標幟
1 回覆
2313 瀏覽次數

I have an old module (from odoo15) where a field "unit" is added to the web view of an invoice and into the pdf file:

The second entry (field[@name='invoice_line_ids']/tree/field[@name='quantity']) to display this into the web view works fine. But the first entry (field[@name='line_ids']/tree/field[@name='quantity']) doesn't work, because the field line_ids can't be found. How can I find out the name of the corresponding field to add it to the pdf file?

頭像
捨棄
最佳答案

Hi,
You have to inherit the corresponding report template and using the xpath expression you need to add the field in the required position.


If you are looking to get a technical name of a field, you can activate the developer mode and hover the mouse on the field to get the tech name.

See this video explaining the same: https://www.youtube.com/watch?v=l2tvrpfOR1E

Thanks

頭像
捨棄
作者

Thanks! I've already found out how I can find field name in the web view but not for the PDF reports as developer mode isn't working for this.

you cannot mouse hover an get a field name from qweb report or web view, may be you can check by inspecting the view or better to check the original report template qweb

* enable debug mode
* open reports menu from settings technical
* search and open your report
* click qweb views button and see the written architecture

相關帖文 回覆 瀏覽次數 活動
1
7月 23
3378
1
3月 23
5357
2
2月 24
4252
0
8月 23
1383
1
4月 23
423