fix
This commit is contained in:
parent
41846f0b8e
commit
722fcbfea5
|
|
@ -106,10 +106,7 @@ class PermissionController(http.Controller):
|
|||
permission = None
|
||||
try:
|
||||
permission_number = self.permission_number_decrement(employee, body['date_from'], body['date_to'])
|
||||
permission = (
|
||||
http.request.env["hr.personal.permission"]
|
||||
.sudo()
|
||||
.create(
|
||||
permission = http.request.env["hr.personal.permission"].sudo().create(
|
||||
{
|
||||
"employee_id": employee.id,
|
||||
"date_from": body["date_from"],
|
||||
|
|
@ -120,7 +117,7 @@ class PermissionController(http.Controller):
|
|||
"date": body["date"],
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
# permission.permission_number_decrement()
|
||||
if 'attachment' in body and body['attachment']:
|
||||
attach = http.request.env['ir.attachment'].sudo().create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue