How to apply a loop in xml report for odoo 8?



The following is the rml report code I used in openerp 7:



<para style="terp_default_2">[[ repeatIn([line for line in picking.move_lines if ((line.state == 'confirmed' or line.state=='done' or line.state=='assigned') and not line.scrapped)],'move_lines') ]]</para>


I need to convert this to odoo 8. How can I apply the same condition in XML report for odoo 8? The following is an example of looping in odoo 8 xml report:



<tr t-foreach="o.order_line" t-as="l">


I need to apply the same condition used in rml for a similar loop.


Thanks And Regards,


Yaseen Shareef


No comments:

Post a Comment