diff options
Diffstat (limited to 'addons/hr_work_entry/models')
| -rw-r--r-- | addons/hr_work_entry/models/hr_work_entry.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_work_entry/models/hr_work_entry.py b/addons/hr_work_entry/models/hr_work_entry.py index af17c110d07..dafb2c0793d 100644 --- a/addons/hr_work_entry/models/hr_work_entry.py +++ b/addons/hr_work_entry/models/hr_work_entry.py @@ -35,7 +35,7 @@ class HrWorkEntry(models.Model): ('_work_entry_start_before_end', 'check (date_stop > date_start)', 'Starting time should be before end time.') ] - @api.onchange('state') + @api.depends('state') def _compute_conflict(self): for rec in self: rec.conflict = rec.state == 'conflict' |
