在打印报告内容时,请分为两页

时间:2018-09-11 10:49:58

标签: odoo odoo-10 odoo-11

当我打印报告时,它将内容切成两页。我想如果内容增加,然后问候出现在下一页。

<tr>
  <td style="padding-bottom:10px;">Terms &amp; Conditions</td>
</tr>
<tr>
  <td style="padding-left:20px;">
    <span t-if="doc.comment">
      <t t-set="comment" t-value="doc.comment.split('\n')"/>
        <ol>
          <t t-foreach="comment" t-as="pt">
            <li><span t-esc="pt"/></li>
          </t>
        </ol>
    </span>
  </td>
</tr>
<tr>
  <td style="padding-top:10px;page-break-inside:avoid;">With regards</td>
</tr>
<tr>
  <td style="padding-top: 120px;page-break-inside:avoid;">.........................................</td>
</tr>
<tr>
  <td>Mandy Tsang</td>
</tr>
<tr>
  <td>Director</td>
</tr>
</table>

在这里,我附上当前打印的文件。enter image description here

enter image description here 我想问候进入下一页

1 个答案:

答案 0 :(得分:0)

如果您确定要在With regards之前添加分页符,则应将该部分之前的表拆分为2个表,然后添加和style="page-break-before:always;"来指示报表引擎在所需的内容。

相关问题