Fix bug
This commit is contained in:
parent
b0a15d18a7
commit
3ee60b0b3d
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import werkzeug
|
import werkzeug
|
||||||
from odoo import http, tools , exceptions, _
|
from odoo import http, tools , exceptions
|
||||||
from datetime import datetime,timedelta
|
from datetime import datetime,timedelta
|
||||||
from odoo.http import request, Response
|
from odoo.http import request, Response
|
||||||
import base64
|
import base64
|
||||||
|
|
@ -15,7 +15,7 @@ from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMA
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
import re
|
import re
|
||||||
|
from odoo.tools.translate import _
|
||||||
|
|
||||||
class PermissionController(http.Controller):
|
class PermissionController(http.Controller):
|
||||||
# Permission
|
# Permission
|
||||||
|
|
@ -40,10 +40,10 @@ class PermissionController(http.Controller):
|
||||||
permissions = False
|
permissions = False
|
||||||
permission_types = http.request.env['hr.personal.permission.type'].search_read([], ['name'])
|
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 = http.request.env['hr.personal.permission']._fields['type_exit']
|
||||||
type_exit_opts = [
|
# type_exit_opts = [
|
||||||
{"value": key, "label": str(http.request.env['ir.qweb'].env._(label))}
|
# {"value": key, "label": str(http.request.env['ir.qweb'].env._(label))}
|
||||||
for key, label in type_exit.selection
|
# for key, label in type_exit.selection
|
||||||
]
|
# ]
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
emp = []
|
emp = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue