[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:
parent
7e33a4746b
commit
dfc2e1ce1b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue