在RML报告中创建一个框

时间:2014-10-06 11:31:49

标签: report openerp rml

我喜欢在结构框中显示文本消息。

<para fontSize="8.0">All goods supplied are subject to our standard terms and condition, a copy on which available upon request.</para>
<para fontSize="8.0">All shortages, discrepancies or damages must be reported to order@xxxxx.co.uk within 48 hours of delivery.</para>

所以上面的para内容应该放在像结构一样的框中

2 个答案:

答案 0 :(得分:0)

然后添加一个表并指定边框

答案 1 :(得分:0)

<blockTableStyle id="Table_4">
  <blockAlignment value="LEFT"/>
  <blockValign value="TOP"/>
  <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
  <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
  <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
  <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
</blockTableStyle>

<blockTable repeatRows="1" style="Table_4">
  <tr>
    <td>
      <para style="terp_tblheader_Details_Centre4">All goods supplied are subject to our standard terms and condition, a copy on which available upon request.</para>
    </td>
  </tr>
  <tr>
    <td>
      <para style="terp_tblheader_Details_Centre4">All shortages, discrepancies or damages must be reported to yyyyyy@xxxxxx.co.uk within 48 hours of delivery.</para>
    </td>
  </tr>
</blockTable>