我使用本指南从头开始创建了一份新报告:http://odoo.guide/report-design-workshop/
我的问题:如果我的报告中有很多产品,则不显示包括总金额等在内的最后一部分.我想有一种分页符或至少第二个pdf页面.
注意:如果我使用基本的odoo报告,我在pdf中有第二页,但显示如下:http: //fs5.directupload.net/images/150924/bf9lsx6u.jpg
欢迎任何其他想法!
编辑:在使用分页标记的基本报告中工作真的很好,但它根本没有影响我自己的报告设计.
我的代码尝试使用分页符标记:
account.Name_report
<?xml version="1.0"?>
<t t-name="account.Name_report">
<t t-call="report.Name_layout">
<t t-foreach="docs" t-as="o"> <!-- this makes the context model data accessible throughout the variable "o" -->
<div class="page">
<div style="color:white">.</div><!--as reference for fixed positions-->
<img src="/document/static/img/Briefpapier_rechnung.svg" style="position: fixed; left:-20px;top:0px;z-index:-100"/>
<div style="color: white;
font-size: 20px;
z-index: 1;
position: fixed;
left: 390px;
top: 36px;
font-size: 38px;">Rechnung
</div>
<!--Adresse-->
<div style="color: black;
font-size: -1px;
z-index: 1;
position: fixed;
top: 138px;
left: 60px;
font-size: 12px;"> …Run Code Online (Sandbox Code Playgroud)