Skip to content

Commit

Permalink
make data more beautiful by changing every entry from full capitalize…
Browse files Browse the repository at this point in the history
…d words to camel case
  • Loading branch information
dkrimmer84 committed Sep 26, 2016
1 parent deec37e commit a0afeb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/l10n_co_res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ def _concat_name(self):
for item in nameList:
if item is not '':
formatedList.append(item)
self.name = ' ' .join(formatedList)
self.name = ' ' .join(formatedList).title()
else:
# Some Companies are know for their Brand, which could conflict from the users point of view while
# searching the company (e.j. o2 = brand, Telefonica = Company)
if self.companyBrandName is not False:
delimiter = ', '
company_list = (self.companyBrandName, self.companyName)
self.name = delimiter.join(company_list)
self.name = delimiter.join(company_list).title()
else:
self.name = self.companyName
self.name = self.companyName.title()

@api.onchange('name')
def onChangeName(self):
Expand Down

0 comments on commit a0afeb9

Please sign in to comment.