Merge pull request #1946 from neilLasrado/develop

[ux improvement] Sort modules shown in user doctype
This commit is contained in:
Rushabh Mehta 2016-08-08 18:15:24 +05:30 committed by GitHub
commit a115df59dc

View file

@ -36,7 +36,7 @@ class User(Document):
def onload(self):
self.set_onload('all_modules',
[m.module_name for m in frappe.db.get_all('Desktop Icon',
fields=['module_name'], filters={'standard': 1})])
fields=['module_name'], filters={'standard': 1}, order_by="module_name")])
def validate(self):
self.check_demo()