打印标签分为两列 - Qweb报告OdooV10

时间:2017-06-08 06:51:14

标签: odoo-10 qweb

我正在尝试在Odoo版本10中创建Qweb报告,我的要求是在行中的两列中打印for-each值,

<t t-call="report.html_container">
            <t t-foreach="docs" t-as="doc">
           <!-- Here i need to print the doc data in two columns , then proceed to next row -->
             </t>
 </t>

请有人帮我打印两列数据,然后继续行

1 个答案:

答案 0 :(得分:1)

试试这个

在报告模板中,添加此代码

<div class="row">
    <div class="col-xs-6">
        <p t-field="enter your name"/>
    </div>
    <div class="col-xs-6" >
        <p t-field="enter your name"/>
    </div>
</div>
相关问题