From 86c68d758c43cdb8c62372af3906f792ab02dc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 23 May 2012 11:26:31 +0200 Subject: [PATCH] [IMP] project.task.type: added a fold attribute, as on crm_case_stage and hr_recruitment_stage. bzr revid: tde@openerp.com-20120523092631-u02lva78wa7pzia2 --- addons/project/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/project/project.py b/addons/project/project.py index 201ad8eedde..346ace7194a 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -45,10 +45,12 @@ class project_task_type(osv.osv): 'project_default': fields.boolean('Common to All Projects', help="If you check this field, this stage will be proposed by default on each new project. It will not assign this stage to existing projects."), 'project_ids': fields.many2many('project.project', 'project_task_type_rel', 'type_id', 'project_id', 'Projects'), 'state': fields.selection(_TASK_STATE, 'State', required=True, help="The related state for the stage. The state of your document will automatically change regarding the selected stage. Example, a stage is related to the state 'Close', when your document reach this stage, it will be automatically closed."), + 'fold': fields.boolean('Hide in views if empty', help="This stage is not visible, for example in status bar or kanban view, when there are no records in that stage to display."), } _defaults = { 'state': 'draft', - 'sequence': 1 + 'sequence': 1, + 'fold': False, } _order = 'sequence' project_task_type()