[FIX] ir_qweb: contact widget: use name_get instead of display_name

display_name field is overidden in res.partner in order to pop the context
key leading to show the address, and we want the address.
This commit is contained in:
Simon Lejeune 2014-11-05 13:37:56 +01:00
parent 3629bfe64f
commit afce229e5a
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ class Contact(orm.AbstractModel):
if not value_rec:
return None
value_rec = value_rec.sudo().with_context(show_address=True)
value = value_rec.display_name
value = value_rec.name_get()[0][1]
val = {
'name': value.split("\n")[0],