Merge pull request #4104 from expsa/younes_dev_odex25_mobile

Fix bug
This commit is contained in:
kchyounes19 2025-08-04 10:42:48 +01:00 committed by GitHub
commit c8a8bfcf94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import werkzeug
from odoo import http, tools , exceptions, _
from odoo import http, tools , exceptions
from datetime import datetime,timedelta
from odoo.http import request, Response
import base64
@ -15,7 +15,7 @@ from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMA
_logger = logging.getLogger(__name__)
import re
from odoo.tools.translate import _
class PermissionController(http.Controller):
# Permission
@ -40,10 +40,10 @@ class PermissionController(http.Controller):
permissions = False
permission_types = http.request.env['hr.personal.permission.type'].search_read([], ['name'])
type_exit = http.request.env['hr.personal.permission']._fields['type_exit']
type_exit_opts = [
{"value": key, "label": str(http.request.env['ir.qweb'].env._(label))}
for key, label in type_exit.selection
]
# type_exit_opts = [
# {"value": key, "label": str(http.request.env['ir.qweb'].env._(label))}
# for key, label in type_exit.selection
# ]
count = 0
emp = []