From 53c128d492f7c97c451b617efbb2481cd0f70fa1 Mon Sep 17 00:00:00 2001 From: "Audric Onockx (auon)" Date: Thu, 23 Mar 2023 12:49:37 +0000 Subject: [PATCH] [FIX] sale_timesheet: adapt fields desciption to compute method deletion In https://github.com/odoo/odoo/pull/105730, we deleted `_compute_allocated_hours` method, but it is still referenced in the description of field `allocated_hours`. In this commit, we erase this reference. And because it is not compute anymore, no need to specify `store` and `readonly`. closes odoo/odoo#116465 X-original-commit: 94f76339b6b15f60a33db5305d67a647c46c2caa Signed-off-by: Xavier Bol (xbo) Signed-off-by: Audric Onockx (auon) --- addons/sale_timesheet/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_timesheet/models/project.py b/addons/sale_timesheet/models/project.py index a0f56e7895a..6f53bc8b076 100644 --- a/addons/sale_timesheet/models/project.py +++ b/addons/sale_timesheet/models/project.py @@ -55,7 +55,7 @@ class Project(models.Model): warning_employee_rate = fields.Boolean(compute='_compute_warning_employee_rate', compute_sudo=True) partner_id = fields.Many2one( compute='_compute_partner_id', store=True, readonly=False) - allocated_hours = fields.Float(compute='_compute_allocated_hours', store=True, readonly=False, copy=False) + allocated_hours = fields.Float(copy=False) @api.model def _get_view(self, view_id=None, view_type='form', **options):