1
votes

How display data in one or two row?

Source line:

<div t-field="doc.partner_invoice_id"
                        t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true, "phone_icons": true}'/>

return:

ADDRESS
NAME
PHONE
FAX

I want ADDRESS, NAME, PHONE, FAX

1

1 Answers

3
votes

You can use span to print them on the same line:

<div>
    <span t-field="o.partner_id.street"/>
    <span t-field="o.partner_id.name"/>
    <span t-field="o.partner_id.phone"/>
    <span t-field="o.partner_id.fax"/>
</div>