Odoo Help

Welcome!

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.

0

Openerp RML report with the fixed size table and empty rows at the bottom.

By
Amit Patel
on 11/12/13, 3:16 PM 2,095 views

I have used default python tag for repeatRows and repatln. But i want to add empty rows at the bottom to make my table big. this is the code.


<para style="terp_default_8">[[repeatIn(o.order_line,'line')]][["" for l in range(10), 'line']]</para> <blockTable colWidths="20.0,100.0,150.0,80.0,50.0,20.0,60.0,50.0" style="Table_Order_Pur_line_Content"> <tr> <td> <para style="terp_default_9"> </para> </td> <td> <para style="terp_default_9">[[ ', '.join(map(lambda x: x.name, line.taxes_id)) ]]</para> </td> <td> <para style="terp_default_9">[[line.name]]</para> </td> <td> <para style="terp_default_Right_9">[[ formatLang(line.product_qty ) ]]</para> </td> <td> <para style="terp_default_Right_9">[[ formatLang(line.price_unit,digits=get_digits(dp='Product Price') ) ]]</para> </td> <td> <para style="terp_default_Right_9"> </para> </td> <td> <para style="terp_default_Right_9"> </para> </td> <td> <para style="terp_default_Right_9">[[ formatLang(line.price_subtotal,digits=get_digits(dp='Account'), currency_obj=o.pricelist_id.currency_id ) ]] </para> </td> </tr> </blockTable> </section>

" http://forum.openerp.com/forum/topic8508.html " I'm trying to do this but setTag giving me an error. and I don't know whether blank_line function is executing fine or not.

Amit Patel
on 11/26/13, 2:34 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

0 follower(s)

Stats

Asked: 11/12/13, 3:16 PM
Seen: 2095 times
Last updated: 4/4/15, 10:43 AM