diff options
| author | jbm-odoo <jbm@odoo.com> | 2019-11-04 08:47:18 +0000 |
|---|---|---|
| committer | jbm-odoo <jbm@odoo.com> | 2019-11-06 10:08:50 +0000 |
| commit | 6b5bdbb476b849fac4e46a7d0082bc12bc6ae6e2 (patch) | |
| tree | 1bd212fc663c8305c0d681aaad27ffabe0949223 /addons/hr_work_entry/models | |
| parent | c83cac21a738702820ce5084c605d47fab06e909 (diff) | |
[IMP] hr_[contract,employee,recruitment,work_entry]: Add multi edit in view
Make some fields editable in multi edit.
Some onchange are tranformed in compute fields.
id=2078674
closes odoo/odoo#39711
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
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' |
