Skip to content

Commit

Permalink
[FIX] contact widget should return a really empty address
Browse files Browse the repository at this point in the history
This fixes a bug in website_quote, because qweb tests whether address is
something that bool() casts to False or not, in order to display an icon (or not).
  • Loading branch information
msa-odoo authored and rim-odoo committed Jul 25, 2014
1 parent dd9f10a commit 0913947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/addons/base/ir/ir_qweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def record_to_html(self, cr, uid, field_name, record, column, options=None, cont

val = {
'name': value.split("\n")[0],
'address': escape("\n".join(value.split("\n")[1:])),
'address': escape("\n".join(value.split("\n")[1:])).strip(),
'phone': field_browse.phone,
'mobile': field_browse.mobile,
'fax': field_browse.fax,
Expand Down

0 comments on commit 0913947

Please sign in to comment.