问题描述
下午好。我希望你能帮助我们报告。在这里,我将向您展示我到目前为止所拥有的。
在这里,我会再次向您展示我需要的东西。
所以,我想在一页中包含六份(6 份报告),但我不知道该怎么做。
解决方法
你可以在<div class="page">Here</div>
里面使用t-foreach来获取一个页面中的所有记录,然后你就可以逐表设计模板了。
例如在单个页面上打印产品条形码。
<template id="report_productbarcode">
<t t-call="web.basic_layout">
<div class="page">
<t t-foreach="docs" t-as="product">
<t t-call="product.report_simple_barcode">
<t t-set="product" t-value="product"/>
</t>
</t>
</div>
</t>
</template>