[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:
parent
3629bfe64f
commit
afce229e5a
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue