fix bug
This commit is contained in:
parent
dd4866ee53
commit
ba2043fbd2
|
|
@ -121,7 +121,7 @@ class PermissionController(http.Controller):
|
|||
}
|
||||
)
|
||||
)
|
||||
permission.permission_number_decrement()
|
||||
# permission.permission_number_decrement()
|
||||
if 'attachment' in body and body['attachment']:
|
||||
attach = http.request.env['ir.attachment'].sudo().create({
|
||||
'name': body['attachment'].filename,
|
||||
|
|
@ -195,7 +195,7 @@ class PermissionController(http.Controller):
|
|||
'date': body['date'],
|
||||
'mission_purpose': body['mission_purpose'],
|
||||
})
|
||||
permission.permission_number_decrement()
|
||||
# permission.permission_number_decrement()
|
||||
if 'attachment' in body and body['attachment']:
|
||||
attach = http.request.env['ir.attachment'].sudo().create({
|
||||
'name': body['attachment'].filename,
|
||||
|
|
|
|||
Loading…
Reference in New Issue