Minor fixes

This commit is contained in:
Nabin Hait 2018-04-18 11:52:12 +05:30
parent 2215d4c593
commit ee09408dcc
2 changed files with 2294 additions and 2263 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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"))