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

I want to aligment to LEFT IN table in fie .rml

By
huongcute
on 10/1/14, 6:02 AM 885 views

Hello everybody !

 

I want to aligment to LEFT of table in fie report . I tried : code :<blockTable  alignment="LEFT" colWidths="45.0,140.0,82.0,82.0,82.0,82.0"  style="table2"> 

 

But it doesnt work. I dont know how do it?

Can anybody help me?

Thanks all friends

0
huongcute
On 10/1/14, 10:47 PM

yeah!

Thák. This is my code :  .rml

<?xml version="1.0" encoding="utf-8"?>
<document filename="Sales Order.pdf">
  <template title="Sales Order" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20">
    <pageTemplate id="first">
      <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
    </pageTemplate>
  </template>
  <stylesheet>
    <blockTableStyle id="Standard_Outline">
      <blockAlignment value="LEFT"/>
      <blockValign value="TOP"/>
    </blockTableStyle>
    <blockTableStyle id="Table1">
      <blockAlignment value="LEFT"/>
      <blockValign value="TOP"/>
    </blockTableStyle>
    <blockTableStyle id="Table2">
      <blockAlignment value="LEFT"/>
      <blockValign value="TOP"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="2,0" stop="2,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="2,0" stop="2,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
      <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
      <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
      <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
      <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/>
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/>       
    </blockTableStyle>

    <initialize>
      <paraStyle name="all" alignment="justify"/>
    </initialize>
    <paraStyle name="terp_header" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
    <paraStyle name="terp_default_8" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_default_Bold_9" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_default_9" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_tblheader_General_Centre" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
    <paraStyle name="terp_default_Centre_8" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_tblheader_Details" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
    <paraStyle name="terp_tblheader_Details_Centre" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
    <paraStyle name="terp_tblheader_Details_Right" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
    <paraStyle name="terp_default_Centre_9" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_default_Right_9" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_default_1" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
    <paraStyle name="terp_default_Right_9_Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
    
    <images/>
  </stylesheet>
  <story>

    <para style="terp_default_8">
      <font color="white"> </font>
    </para>
    <para style="terp_default_8">
      <font color="white"> </font>
    </para>
    <para style="terp_header"><b>DANH SÁCH THỬ VIỆC</b></para>

    <blockTable colWidths="45.0,140.0,82.0,82.0,82.0,82.0" style="Table2">
      <tr>
        <td>
          <para style="terp_tblheader_General_Centre"><b>Mã Nv </b></para>
        </td>
  
        <td>
          <para style="terp_tblheader_General_Centre"><b>Tên nhân viên</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Centre"><b>Bộ phận</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Centre"><b>Ngày bắt đầu</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Centre"><b>Ngày kết thúc</b></para>
        </td> 
        <td>
          <para style="terp_tblheader_General_Centre"><b>Lương thử việc</b></para>
        </td>                       
      </tr>
    </blockTable>
    <blockTable colWidths="45.0,140.0,82.0,82.0,82.0,82.0" style="Table2">
      <tr>
        <td>
          <para style="terp_default_Centre_8">[[ repeatIn(objects,'tv') ]]</para>
          <para style="terp_default_Centre_8">[[ tv.ma_nvtv ]]</para>
        </td>
  
        <td>
          <para style="terp_default_Centre_8">[[ tv.ten_nvtv ]]</para>
        </td>
        <td>
          <para style="terp_default_Centre_8">[[ tv.ten_bp.ten_bp ]]</para>
        </td>
        <td>
          <para style="terp_default_Centre_8">[[ tv.ngay_bd ]]</para>
        </td>
        <td>
          <para style="terp_default_Centre_8">[[ tv.ngay_kt ]]</para>
        </td> 
        <td>
          <para style="terp_default_Centre_8">[[ tv.luong_tv ]]</para>
        </td>                       
      </tr>
    </blockTable>
    <para style="terp_default_8">
      <font color="white"> </font>
    </para>
   
    <para style="terp_default_8">
      <font color="white"> </font>
    </para>
  </story>
</document>

can you give me content of your RML file ? It might help me to resolve your issue.

Emipro Technologies Pvt. Ltd.
on 10/3/14, 1:44 AM

yeah ! My code .rml <template title="Sales Order" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20"> DANH SÁCH THỬ VIỆC Mã Nv Tên nhân viên Bộ phận Ngày bắt đầu Ngày kết thúc Lương thử việc [[ repeatIn(objects,'tv') ]] [[ tv.ma_nvtv ]] [[ tv.ten_nvtv ]] [[ tv.ten_bp.ten_bp ]] [[ tv.ngay_bd ]] [[ tv.ngay_kt ]] [[ tv.luong_tv ]]

huongcute
on 10/3/14, 2:44 AM
0

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
Tiny ERP Pvt Ltd
http://www.odoo.com
5975
| 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 10/1/14, 8:31 AM

Hi,

You have to give the alignment value on the style as like below.

<blockTableStyle id="table2">
      <blockAlignment value="LEFT"/>
      <blockValign value="TOP"/>
</blockTableStyle>

Then you can use this style into you blocktable as like below.

<blockTable colWidths="45.0,140.0,82.0,82.0,82.0,82.0"  style="table2"> 

I hope your problem is solved.

 

 

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

1 follower(s)

Stats

Asked: 10/1/14, 6:02 AM
Seen: 885 times
Last updated: 3/16/15, 8:10 AM