Skip to content

Commit

Permalink
[FIX] project_timesheet_time_control: Condition always gets evaluated…
Browse files Browse the repository at this point in the history
… as False (OCA#321)
  • Loading branch information
fuentes73 authored and chandni-serpentcs committed Jan 9, 2024
1 parent afe29ab commit 05bcdeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 05bcdeb

Please sign in to comment.