diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/permission.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/permission.py index 0f50782e1..e62940931 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/permission.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/permission.py @@ -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 = []