Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Am trying to enhance my open office report data with few more additional data. But am not able to access the nested referenced table values in to my report
Eg:- I want to show following columns [ Product Name , Description , Quantity , Unit Price , subtotal] in my purchase order report (open office) , but as of now in default template there is no option to see the Product Name. How can i add that information in to the report.
Table reference goes like this : purchase_order_line(pruduct_id) -> product_product(product_tmpl_id) -> product_template
Issue :- I wand to fetch the name field of product_template table in to my report.
Reference :- current report has loop starts like as follows ,
[[ line.name ]] --> this field just gives description from the purchase_order_line table
Any hint point to the answer is highly appreciated.. Thanks in advance ..
You can fetch product name by
[[repeatIn(o.order_line,'line')]] [[ line.name ]] Product Name - [[ line.product_id.name ]]
You can also fetch product template id by
[[repeatIn(o.order_line,'line')]] [[ line.name ]] Product Template Name - [[ line.product_id.product_tmpl_id.name ]]
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/27/13, 5:46 AM|
|Seen: 2241 times|
|Last updated: 3/16/15, 8:10 AM|