[FIX] project.task: stage_id -> type_id

bzr revid: tde@openerp.com-20120524091337-cdy7qf0gozb7zwg5
This commit is contained in:
Thibault Delavallée
2012-05-24 11:13:37 +02:00
parent 0cecb7a89b
commit f9d801dfd1
+1 -1
View File
@@ -677,7 +677,7 @@ class task(osv.osv):
'priority': fields.selection([('4','Very Low'), ('3','Low'), ('2','Medium'), ('1','Important'), ('0','Very important')], 'Priority', select=True),
'sequence': fields.integer('Sequence', select=True, help="Gives the sequence order when displaying a list of tasks."),
'type_id': fields.many2one('project.task.type', 'Stage'),
'state': fields.related('stage_id', 'state', type="selection", store=True,
'state': fields.related('type_id', 'state', type="selection", store=True,
selection=_TASK_STATE, string="State", readonly=True,
help='The state is set to \'Draft\', when a case is created.\
If the case is in progress the state is set to \'Open\'.\