Minor fixes
This commit is contained in:
parent
2215d4c593
commit
ee09408dcc
File diff suppressed because it is too large
Load Diff
@ -45,8 +45,8 @@ class Company(NestedSet):
|
||||
|
||||
self.abbr = self.abbr.strip()
|
||||
|
||||
if self.get('__islocal') and len(self.abbr) > 5:
|
||||
frappe.throw(_("Abbreviation cannot have more than 5 characters"))
|
||||
# if self.get('__islocal') and len(self.abbr) > 5:
|
||||
# frappe.throw(_("Abbreviation cannot have more than 5 characters"))
|
||||
|
||||
if not self.abbr.strip():
|
||||
frappe.throw(_("Abbreviation is mandatory"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user