diff --git a/project_type/i18n/fr.po b/project_type/i18n/fr.po
index 200d81bf9f..545ad06c5e 100644
--- a/project_type/i18n/fr.po
+++ b/project_type/i18n/fr.po
@@ -94,6 +94,11 @@ msgstr "Nom"
msgid "Parent Type"
msgstr "Type Parent"
+#. module: project_type
+#: model:ir.model.fields,field_description:project_type.field_project_type__sequence
+msgid "Priority"
+msgstr "Priorité"
+
#. module: project_type
#: model:ir.model,name:project_type.model_project_project
msgid "Project"
diff --git a/project_type/i18n/fr_FR.po b/project_type/i18n/fr_FR.po
index 70f38dc413..8322622a32 100644
--- a/project_type/i18n/fr_FR.po
+++ b/project_type/i18n/fr_FR.po
@@ -92,7 +92,12 @@ msgstr "Nom"
#. module: project_type
#: model:ir.model.fields,field_description:project_type.field_project_type__parent_id
msgid "Parent Type"
-msgstr ""
+msgstr "Type parent"
+
+#. module: project_type
+#: model:ir.model.fields,field_description:project_type.field_project_type__sequence
+msgid "Priority"
+msgstr "Priorité"
#. module: project_type
#: model:ir.model,name:project_type.model_project_project
diff --git a/project_type/i18n/project_type.pot b/project_type/i18n/project_type.pot
index 744f333732..3763001376 100644
--- a/project_type/i18n/project_type.pot
+++ b/project_type/i18n/project_type.pot
@@ -91,6 +91,11 @@ msgstr ""
msgid "Parent Type"
msgstr ""
+#. module: project_type
+#: model:ir.model.fields,field_description:project_type.field_project_type__sequence
+msgid "Priority"
+msgstr ""
+
#. module: project_type
#: model:ir.model,name:project_type.model_project_project
msgid "Project"
diff --git a/project_type/models/project_type.py b/project_type/models/project_type.py
index 0e688d5233..03e4215045 100644
--- a/project_type/models/project_type.py
+++ b/project_type/models/project_type.py
@@ -8,6 +8,7 @@ class ProjectType(models.Model):
_name = "project.type"
_description = "Project Type"
_rec_name = "complete_name"
+ _order = "sequence,code,name"
parent_id = fields.Many2one(comodel_name="project.type", string="Parent Type")
child_ids = fields.One2many(
@@ -21,6 +22,7 @@ class ProjectType(models.Model):
project_ok = fields.Boolean(string="Can be applied for projects", default=True)
task_ok = fields.Boolean(string="Can be applied for tasks")
code = fields.Char(copy=False)
+ sequence = fields.Integer(string="Priority")
@api.constrains("parent_id")
def check_parent_id(self):
diff --git a/project_type/views/project_project_views.xml b/project_type/views/project_project_views.xml
index 688bc227ec..3346361aa5 100644
--- a/project_type/views/project_project_views.xml
+++ b/project_type/views/project_project_views.xml
@@ -1,29 +1,32 @@
-
- project.project
-
-
-
-
-
-
-
+ project.project
+
+
+
+
+
+
+
-
-
-
-
- project.project
-
-
-
-
-
-
-
+
+
+
+
+
+ project.project
+
+
+
+
+
+
+
+
diff --git a/project_type/views/project_task_views.xml b/project_type/views/project_task_views.xml
index 20d7bf68ae..38c6108f59 100644
--- a/project_type/views/project_task_views.xml
+++ b/project_type/views/project_task_views.xml
@@ -1,29 +1,32 @@
-
- project.task
-
-
-
-
-
-
-
-
- project.task
-
-
-
-
-
-
-
+ project.task
+
+
+
+
+
+
+
+
+
+ project.task
+
+
+
+
+
+
+
-
-
-
+
+
+
+
diff --git a/project_type/views/project_type_views.xml b/project_type/views/project_type_views.xml
index 8928fcd97f..0977044a23 100644
--- a/project_type/views/project_type_views.xml
+++ b/project_type/views/project_type_views.xml
@@ -1,79 +1,96 @@
-
- project.type
-
-
-
-
-
- project.type
-
-
-
-
-
-
+ project.type
+
+
+
+
+
+
+ project.type
+
+
+
+
+
+
+
+
+
+
+
+
+
+ project.type
+
+
+
+
+
+
-
-
-
-
-
- Project Types
- project.type
- tree,form
-
-