diff --git a/project_timesheet_time_control/__manifest__.py b/project_timesheet_time_control/__manifest__.py index b91995fedb..ad756a3096 100644 --- a/project_timesheet_time_control/__manifest__.py +++ b/project_timesheet_time_control/__manifest__.py @@ -6,7 +6,7 @@ { 'name': 'Project timesheet time control', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'category': 'Project', 'author': 'Tecnativa,' 'Odoo Community Association (OCA)', diff --git a/project_timesheet_time_control/models/account_analytic_line.py b/project_timesheet_time_control/models/account_analytic_line.py index ed84cf1c32..69cb4cbc73 100644 --- a/project_timesheet_time_control/models/account_analytic_line.py +++ b/project_timesheet_time_control/models/account_analytic_line.py @@ -32,7 +32,7 @@ def onchange_task_id(self): self.project_id = self.task_id.project_id.id def eval_date(self, vals): - if 'date_time' in vals and 'date' not in vals: + if vals.get('date_time'): vals['date'] = fields.Date.from_string(vals['date_time']) return vals