diff options
| author | Yannick Tivisse <yti@odoo.com> | 2020-02-14 10:47:05 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-02-14 12:27:01 +0000 |
| commit | fd9b08c70fff21a73f42ce1b21be0580c0283dcc (patch) | |
| tree | 4b36c3afdcde2715a354721048a79ca0f2688d85 /addons/timer | |
| parent | 9b87228c1e732ec6874540e9a64dad38e243df80 (diff) | |
[FIX] timer: Fix wrong type for res_id field
Purpose
=======
Having a char field referring to an Integer could lead
to unwanted behavior if not managed correctly.
closes odoo/odoo#45393
X-original-commit: d73a86fd682495c034dfde678442f37689ecb759
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/timer')
| -rw-r--r-- | addons/timer/models/timer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/timer/models/timer.py b/addons/timer/models/timer.py index d8e87533703..0da18794cd2 100644 --- a/addons/timer/models/timer.py +++ b/addons/timer/models/timer.py @@ -12,7 +12,7 @@ class TimerTimer(models.Model): timer_pause = fields.Datetime("Timer Last Pause") is_timer_running = fields.Boolean(compute="_compute_is_timer_running") res_model = fields.Char(required=True) - res_id = fields.Char(required=True) + res_id = fields.Integer(required=True) user_id = fields.Many2one('res.users') _sql_constraints = [( |
