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.
Hi Guys, Hope you doing well !!! hey i need a little help, i want to print a report RML is okay .... but i have a one2many field with multiple line in that one2many field now i like to print only selected line from one2many field, where a kind of conditions holds true.
Here is an example with Sale Order Lines which prints the product name of a certain line:
<para style="terp_default_9">[[ [l for l in o.order_line if 'x' in l.name].name ]]</para>
... prints the line name of the first line which contains a 'x'. But there will be a problem if no line is selected.
This code prints all lines containing a 'x':
<section>[[repeatIn([l for l in o.order_line if 'x' in l.name],'line')]] <para style="terp_default_1">[[ line.name ]]</para> </section>
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: 10/1/13, 10:42 AM|
|Seen: 1657 times|
|Last updated: 3/16/15, 8:10 AM|