mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
[minor] added abbreviate function in company
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user