[FIX] hr_holidays: use api model instead of multi for dashboard
Before 1ced3bfca, the get_days_all_request method was called with the
context as an argument. As a consequence, because of the api.multi, the
first arg is used as the ids of the record. As the id is not used in
this method, it was not harmful. With the above mentioned fix, there is
no more argument. This causes a traceback when clicking on menu "My Time
Off/Dashboard".
With this commit, the api.model is used instead, that way, the first arg
is not considered as ids.
closes odoo/odoo#32119
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
@@ -189,7 +189,7 @@ class HolidaysType(models.Model):
|
||||
|
||||
return result
|
||||
|
||||
@api.multi
|
||||
@api.model
|
||||
def get_days_all_request(self):
|
||||
employee_id = self._get_contextual_employee_id()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user