base_usability: Add new options to _display_full_address()
This commit is contained in:
@@ -73,10 +73,16 @@ class ResPartner(models.Model):
|
|||||||
if self.is_company:
|
if self.is_company:
|
||||||
company = self.name
|
company = self.name
|
||||||
name = False
|
name = False
|
||||||
|
name_no_title = False
|
||||||
|
title = False
|
||||||
|
title_short = False
|
||||||
else:
|
else:
|
||||||
name = self.name_title
|
|
||||||
company = self.parent_id and self.parent_id.is_company and\
|
company = self.parent_id and self.parent_id.is_company and\
|
||||||
self.parent_id.name or False
|
self.parent_id.name or False
|
||||||
|
name = self.name_title
|
||||||
|
name_no_title = self.name
|
||||||
|
title = self.title.name
|
||||||
|
title_short = self.title.shortcut
|
||||||
options = {
|
options = {
|
||||||
'name': {
|
'name': {
|
||||||
'value': name,
|
'value': name,
|
||||||
@@ -84,6 +90,15 @@ class ResPartner(models.Model):
|
|||||||
'company': {
|
'company': {
|
||||||
'value': company,
|
'value': company,
|
||||||
},
|
},
|
||||||
|
'title': {
|
||||||
|
'value': title,
|
||||||
|
},
|
||||||
|
'title_short': {
|
||||||
|
'value': title_short,
|
||||||
|
},
|
||||||
|
'name_no_title': {
|
||||||
|
'value': name_no_title,
|
||||||
|
},
|
||||||
'phone': {
|
'phone': {
|
||||||
'value': self.phone,
|
'value': self.phone,
|
||||||
# http://www.fileformat.info/info/unicode/char/1f4de/index.htm
|
# http://www.fileformat.info/info/unicode/char/1f4de/index.htm
|
||||||
|
|||||||
Reference in New Issue
Block a user