Odoo Help


rml report: how can set black line between table row's in rml?

on 5/19/16, 2:02 AM 771 views


I defin a function in my .py file that return many rows in rml report.

my .py code is:



def _getsalesdetail(self, fromDate, toDate):

sql = "select so.name,so.date_order,section.name,resu.name,resp.name,soline.id \

,lag(null,1,pp.name_template) over (partition by pp.name_template order by soline.price_unit) as product \

,soline.name,soline.price_unit,soline.product_uom_qty ,actax.amount ,soline.discount \

,((soline.price_unit - soline.price_unit*(soline.discount/100))*(1+actax.amount)) \

,soline.product_uom_qty*((soline.price_unit - soline.price_unit*(soline.discount/100))*(1+actax.amount)) \

from sale_order_line as soline \

full outer join sale_order_tax as soltax on soltax.order_line_id=soline.id \

full outer join account_tax as actax on actax.id=soltax.tax_id \

full outer join sale_order as so on so.id=soline.order_id \

full outer join product_product as pp on pp.id=soline.product_id \

full outer join res_partner as resp on resp.id=so.partner_id \

full outer join res_users as resu on resu.id=so.user_id \

full outer join crm_case_section as section on section.id=so.section_id \

where soline.type='make_to_order' and so.state !='draft' AND so.date_order BETWEEN \'%s\' AND \'%s\' \

group by pp.id,pp.name_template, so.name,so.date_order,section.name,resu.name,resp.name,soline.id,actax.amount" %(fromDate, toDate)


return self.cr.fetchall() or ['-']


and my rml code is:

<blockTable colWidths="38.0,38.0,28.0,38.0,40.0,37.0,37.0,55.0,20.0,23.0,23.0,62.0,60.0" style="Table5">



<para style="P9">[[ repeatIn(getsalesdetail(data['form']['fromDate'], data['form']['toDate']),'ho') ]]</para>

<para style="P8">[[ho[0] ]]</para>



<para style="P8">[[toJalali(ho[1]) ]]</para>



<para style="P8">[[ho[2] ]]</para>



<para style="P10">[[ho[3] ]]</para>



<para style="P8">[[ho[4] ]]</para>



<para style="P8">[[ho[6] ]]</para>



<para style="P8">[[ho[7] ]]</para>



<para style="P8">[[ formatLang(ho[8],currency_obj=company.currency_id) ]]</para>



<para style="P8">[[ho[9] ]]</para>



<para style="P8">[[ho[10] ]]</para>



<para style="P8">[[ho[11] ]]</para>



<para style="P8">[[ formatLang(ho[12],currency_obj=company.currency_id) ]]</para>



<para style="P8">[[ formatLang(ho[13],currency_obj=company.currency_id) ]]</para>





but when I print report

I want between lines(row) add a black line. I don't know how can do it?

my openoffice version is : Libre Office3

Thank you

yes, The problem was solved.

on 5/21/16, 1:57 AM

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.


Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 


We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :


  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 5/19/16, 6:17 AM


I guess that you want to line below each row of the record or table. For that you have to make your style="Table5" is as like below.

<blockTableStyle id="Table5">
<blockAlignment value="LEFT"/>
<blockValign value="TOP"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="4,-1" stop="4,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="5,-1" stop="5,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="6,-1" stop="6,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="11,-1" stop="11,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="12,-1" stop="12,-1"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="13,-1" stop="13,-1"/>

As like "LINEBELOW" there is other options like : "LINEABOVE", "LINEAFTER", "LINEBEFORE" to manage line of individual shell <td> of table.

I hope it is useful to you.


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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/19/16, 2:02 AM
Seen: 771 times
Last updated: 5/21/16, 3:32 AM