[minor] added abbreviate function in company

This commit is contained in:
Rushabh Mehta 2016-01-27 18:58:21 +05:30
parent c54e25b5c7
commit bad13369d4

View File

@ -166,6 +166,9 @@ class Company(Document):
frappe.defaults.clear_cache()
def abbreviate(self):
self.abbr = ''.join([c[0].upper() for c in self.name.split()])
def on_trash(self):
"""
Trash accounts and cost centers for this company if no gl entry exists