Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] project_timesheet_time_control: Condition always gets evaluated as False #321

Merged
merged 3 commits into from
Sep 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project_timesheet_time_control/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down