Odoo Help


How could I format address in qweb report?

Pascal Tremblay
on 12/19/14, 7:06 AM 3,639 views

Actually, I have this address in a report :

Here is the code to get this address :

<h4><strong>Shipping address :</strong></h4>
<div style="margin-left: 20px;" >

<span t-field="o.picking_type_id.warehouse_id.name"/>

<div t-field="o.picking_type_id.warehouse_id.partner_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: true}"/>


How could I put the zip code on a new line? How can I put new comma in address?



| 6 5 7
Lodz, Poland

On 12/19/14, 8:12 AM

"Address Format" is set in the definition of the country. See view of country "Canada". You can change the layout of a standard.

very interesting. I will try it soon.

Pascal Tremblay
on 12/19/14, 8:14 AM

Pascal Tremblay

--Pascal Tremblay--
| 5 3 7
Alma, Canada
--Pascal Tremblay--

Pascal Tremblay
On 12/19/14, 8:23 AM

Here it is! Thanks

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/19/14, 7:06 AM
Seen: 3639 times
Last updated: 3/1/16, 7:58 AM