Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
18996 Lượt xem

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)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks, it is so simple once you see it.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 17
3633
1
thg 9 17
5125
2
thg 2 17
7183
1
thg 8 16
16624
0
thg 1 16
3349