Odoo Help


This community 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.


how to make rml report with 2 object in one table

on 7/5/13, 2:23 AM 1,486 views

i have problem how to make rml with 2 object in 1 table

    <td><para style="P20L"><font>[[ repeatIn(get_lines(), 'o') ]]</font><font> [[ o['counter'] ]] </font></para></td><!--Added by Hengky Zhang-->
    <td><para style="P20L"><font>[[ repeatIn(get_lines2(), 'p') ]]</font><font> [[ p['counter'] ]] </font></para></td><!--Added by Hengky Zhang-->
    <td><para style="P20L"><font>[[ p['date'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ o['product_id'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['name'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ o['qty'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['stock_in'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['stock_out'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['location_name'] ]]</font></para></td>
    <!-- End edited by Jenny Huang -->

thats my code and i have 2 object repeatIn(getlines(), o and repeatIn(getlines2(), p i want to retrieve data from that pbjects

On 7/5/13, 4:12 AM

One solution for solving this problem is while defining the getlines() function return required fields in the list of dictionary.

Thanks Parvathy

no i mean if i have 2 getline() function lets say get_line1 and get_line2 and i want to display this field from getlines 1 and 2 in 1 table in the RML

on 7/7/13, 3:44 AM

Call get_line1 and get_line2 in a comman function get_line and return required fields in the list of dictionary.

on 7/8/13, 2:53 AM

Hello, I have the same problem. But I dont understand how I call the function. Please help.

on 8/13/13, 3:53 PM

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 7/5/13, 2:23 AM
Seen: 1486 times
Last updated: 3/16/15, 8:10 AM