[minor] added abbreviate function in company
This commit is contained in:
parent
c54e25b5c7
commit
bad13369d4
@ -166,6 +166,9 @@ class Company(Document):
|
|||||||
|
|
||||||
frappe.defaults.clear_cache()
|
frappe.defaults.clear_cache()
|
||||||
|
|
||||||
|
def abbreviate(self):
|
||||||
|
self.abbr = ''.join([c[0].upper() for c in self.name.split()])
|
||||||
|
|
||||||
def on_trash(self):
|
def on_trash(self):
|
||||||
"""
|
"""
|
||||||
Trash accounts and cost centers for this company if no gl entry exists
|
Trash accounts and cost centers for this company if no gl entry exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user