From b0d690ee7c1d64eae1e6f2a87be6d6b0a8dc8033 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 6 Jan 2020 08:53:48 +0000 Subject: [PATCH] [FIX] hr_timesheet: re-remove onchange-with-domain Had been removed in 6c4ac28f332eb5c382512585641865ace3f563ea but re-introduced in 15e41f59c7ad0ebeff1ca08cdd0c8c4a57e29394 likely due to an improper conflict resolution. Task 2115472 --- addons/hr_timesheet/models/project.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index a475536aae7..9f4708eee55 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -23,10 +23,6 @@ class Project(models.Model): ('timer_only_when_timesheet', "CHECK((allow_timesheets = 'f' AND allow_timesheet_timer = 'f') OR (allow_timesheets = 't'))", 'The timesheet timer can only be activated on project allowing timesheets.'), ] - @api.onchange('partner_id') - def _onchange_partner_id(self): - return {'domain': {'analytic_account_id': [('partner_id', '=', self.partner_id.id)] if self.partner_id else []}} - @api.onchange('analytic_account_id') def _onchange_analytic_account(self): if not self.analytic_account_id and self._origin: