Skip to Content
Menú
This question has been flagged
1 Respondre
18837 Vistes

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)

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Autor

Thanks, it is so simple once you see it.

Related Posts Respostes Vistes Activitat
0
de des. 17
3516
1
de set. 17
5002
2
de febr. 17
7047
1
d’ag. 16
16437
0
de gen. 16
3260