Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
18621 Представления

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.

Related Posts Ответы Просмотры Активность
0
дек. 17
3336
1
сент. 17
4774
2
февр. 17
6858
1
авг. 16
16175
0
янв. 16
3115