diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-01-06 08:53:48 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-01-06 10:35:46 +0000 |
| commit | b0d690ee7c1d64eae1e6f2a87be6d6b0a8dc8033 (patch) | |
| tree | e7b7036488b1c8ce38199afefb54c6a3691baf09 | |
| parent | 68be60fc8277afc06bfb6a5381f3ad86c8e3abbd (diff) | |
[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
| -rw-r--r-- | addons/hr_timesheet/models/project.py | 4 |
1 files changed, 0 insertions, 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: |
