跳至内容
菜单
此问题已终结
1 回复
18873 查看

The following code prints the label "Invoice Date" and the actual date in separate lines.

So,

<div class="col-xs-8" t-if="o.date_invoice">

<strong>Invoice Date:</strong>

<p t-field="o.date_invoice"/>

</div>


Generates:

Invoice Date:

05/05/2015


What should be done to generate:

Invoice Date: 05/05/2015

(just one line)

形象
丢弃
最佳答案

Hi Em,

Here you go!

Any of these can help.

<strong>Invoice Date: <span t-field="o.date_invoice" /></strong>

or:

<strong> Invoice Date: </strong> <span t-field="o.date_invoice" />

or

<table>
<tr>
<td>
            <strong>Invoice Date: </strong> <span t-field='o.date_invoice'/>
        </td>
    </tr>
</table>


Note : You have used <p> tag that's why its moving to next line.

Rgds,

Anil.

形象
丢弃
编写者

Thanks, it is so simple once you see it.

相关帖文 回复 查看 活动
0
12月 17
3549
1
9月 17
5031
2
2月 17
7089
1
8月 16
16500
0
1月 16
3277