[ADD] project: add change_default parameter on project_id field of project.task. This allows to set default values depending on project through ir.values.

bzr revid: mat@openerp.com-20140107171346-nd1a2esmdaqj9xip
This commit is contained in:
Martin Trigaux 2014-01-07 18:13:46 +01:00
parent 5881686194
commit 5237d95f16
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ class task(osv.osv):
'date_end': fields.datetime('Ending Date',select=True),
'date_deadline': fields.date('Deadline',select=True),
'date_last_stage_update': fields.datetime('Last Stage Update', select=True),
'project_id': fields.many2one('project.project', 'Project', ondelete='set null', select="1", track_visibility='onchange'),
'project_id': fields.many2one('project.project', 'Project', ondelete='set null', select="1", track_visibility='onchange', change_default=True),
'parent_ids': fields.many2many('project.task', 'project_task_parent_rel', 'task_id', 'parent_id', 'Parent Tasks'),
'child_ids': fields.many2many('project.task', 'project_task_parent_rel', 'parent_id', 'task_id', 'Delegated Tasks'),
'notes': fields.text('Notes'),