تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2077 أدوات العرض

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
يوليو 23
3121
1
مارس 23
5119
2
فبراير 24
3964
0
أغسطس 23
1222
1
أبريل 23
423