From: Young Joy Date: Mon, 6 Oct 2014 03:27:55 +0000 (+0800) Subject: [FIX] project: typo in protect.task create X-Git-Tag: InsPy_8.0_01~5^2~1^2~2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=dfc2e1ce1b175895e7dfef6e28a6a3b8d69e6384;p=odoo%2Fodoo.git [FIX] project: typo in protect.task create that typo will cause project task create error when set date_end before the time right now --- diff --git a/addons/project/project.py b/addons/project/project.py index b91c61d..6107641 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -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