Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2314 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
lug 23
3378
1
mar 23
5357
2
feb 24
4252
0
ago 23
1383
1
apr 23
423