İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2319 Görünümler

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?

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 23
3379
1
Mar 23
5357
2
Şub 24
4253
0
Ağu 23
1383
1
Nis 23
423