diff --git a/project_stage/__manifest__.py b/project_stage/__manifest__.py index 4f2b62ec..312d9064 100644 --- a/project_stage/__manifest__.py +++ b/project_stage/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Project Stages', - 'version': '11.0.1.0.0', + 'version': '11.0.1.0.1', 'author': 'Hibou Corp. ', 'website': 'https://hibou.io/', 'license': 'AGPL-3', diff --git a/project_stage/models/project.py b/project_stage/models/project.py index e9b9c5ea..82ad9f15 100644 --- a/project_stage/models/project.py +++ b/project_stage/models/project.py @@ -9,6 +9,7 @@ class ProjectType(models.Model): name = fields.Char(string='Stage Name', required=True, translate=True) description = fields.Text(translate=True) sequence = fields.Integer(default=1) + color = fields.Integer('Color Index') fold = fields.Boolean(string='Folded in Kanban', help='This stage is folded in the kanban view when there are no records in that stage to display.') @@ -18,6 +19,7 @@ class Project(models.Model): stage_id = fields.Many2one('project.type', string='Stage', group_expand='_read_group_stage_ids', track_visibility='onchange', index=True) + stage_color = fields.Integer(related='stage_id.color') @api.model def _read_group_stage_ids(self, stages, domain, order): diff --git a/project_stage/views/project_views.xml b/project_stage/views/project_views.xml index 0c00bf1e..5e8f53ad 100644 --- a/project_stage/views/project_views.xml +++ b/project_stage/views/project_views.xml @@ -83,6 +83,7 @@ + @@ -102,12 +103,48 @@ project.project + - stage_id - quick_create + o_kanban_small_column oe_background_grey o_kanban_dashboard o_project_kanban o_emphasize_colors + + + +
+ + + + +
+
+
+ + + + project.project.form.inherit + project.project + + + +
+ +
+
+ + + +
+
+ + + project.project.select.inherit + project.project + + + +