[IMP] project: order project tags by name instead of id
Purpose of this commit tags order would be more logical to the user if they were sorted by alphabetical order instead of id. So, in this commit sort tags by alphabetical order instead of id. task-3165202 Part-of: odoo/odoo#112620
This commit is contained in:
@@ -11,6 +11,7 @@ class ProjectTags(models.Model):
|
||||
""" Tags of project's tasks """
|
||||
_name = "project.tags"
|
||||
_description = "Project Tags"
|
||||
_order = "name"
|
||||
|
||||
def _get_default_color(self):
|
||||
return randint(1, 11)
|
||||
|
||||
Reference in New Issue
Block a user