Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2308 Переглядів

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

Related Posts Відповіді Переглядів Дія
1
лип. 23
3374
1
бер. 23
5355
2
лют. 24
4245
0
серп. 23
1381
1
квіт. 23
423