[FIX] project: typo in protect.task create

that typo will cause project task create error when set date_end before the time right now
This commit is contained in:
Young Joy 2014-10-06 11:27:55 +08:00 committed by Simon Lejeune
parent 7e33a4746b
commit dfc2e1ce1b
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ class task(osv.osv):
if vals.get('project_id') and not context.get('default_project_id'):
context['default_project_id'] = vals.get('project_id')
# user_id change: update date_start
if vals.get('user_id') and not vals.get('start_date'):
if vals.get('user_id') and not vals.get('date_start'):
vals['date_start'] = fields.datetime.now()
# context: no_log, because subtype already handle this