[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:
Kartik Chavda
2023-04-13 16:39:59 +02:00
parent bb0bab2a3e
commit 73b7fb75b5
+1
View File
@@ -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)