Note that there are some explanatory texts on larger screens.

plurals
  1. POpython tag in rml for loop to insert empty rows
    primarykey
    data
    text
    <p>I have a table in my report which look like.</p> <pre><code>A B C -------------\ 1 2 3 4 5 6 --------------\ </code></pre> <p>Now want to insert fixed number of empty rows at the end</p> <pre><code>A B C -------------\ 1 2 3 4 5 6 empty row empty row empty row -------------\ </code></pre> <p>Please give some way to do this.</p> <pre><code> &lt;section&gt; &lt;para style="terp_default_8"&gt;[[repeatIn(o.order_line,'line')]][["" for l in range(10), 'line']]&lt;/para&gt; &lt;blockTable colWidths="20.0,100.0,150.0,80.0,50.0,20.0,60.0,50.0" style="Table_Order_Pur_line_Content"&gt; &lt;tr&gt; &lt;td&gt; &lt;para style="terp_default_9"&gt; &lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_9"&gt;[[ ', '.join(map(lambda x: x.name, line.taxes_id)) ]]&lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_9"&gt;[[line.name]]&lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_Right_9"&gt;[[ formatLang(line.product_qty ) ]]&lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_Right_9"&gt;[[ formatLang(line.price_unit,digits=get_digits(dp='Product Price') ) ]]&lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_Right_9"&gt; &lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_Right_9"&gt; &lt;/para&gt; &lt;/td&gt; &lt;td&gt; &lt;para style="terp_default_Right_9"&gt;[[ formatLang(line.price_subtotal,digits=get_digits(dp='Account'), currency_obj=o.pricelist_id.currency_id ) ]] &lt;/para&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/blockTable&gt; &lt;/section&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload