[FIX] hr_timesheet: re-remove onchange-with-domain

Had been removed in 6c4ac28f33 but
re-introduced in 15e41f59c7 likely due
to an improper conflict resolution.

Task 2115472
This commit is contained in:
Xavier Morel
2020-01-06 10:35:46 +00:00
parent 68be60fc82
commit b0d690ee7c
-4
View File
@@ -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: