commit
204e745f20
|
|
@ -173,7 +173,8 @@ class LeaveController(http.Controller):
|
|||
success=False)
|
||||
data = None
|
||||
try:
|
||||
holidays = http.request.env['hr.holidays'].search([('id', '=', id)])
|
||||
holidays = http.request.env['hr.holidays'].sudo().search([('id', '=', id)])
|
||||
print(holidays)
|
||||
if holidays:
|
||||
data = self.get_return_data(holidays)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue