@@ -3,6 +3,8 @@ from venv import create
|
||||
from odoo.http import Controller, request, route
|
||||
from datetime import datetime
|
||||
from odoo import models, fields, api, http, SUPERUSER_ID, _
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BusController(Controller):
|
||||
@@ -30,7 +32,8 @@ class BusController(Controller):
|
||||
'attendance_iot_id': attendance_iot_id.id
|
||||
})]
|
||||
})
|
||||
print("---------------------------------------------测试成功---------------------------------------")
|
||||
_logger.info("-------------------------%s创建成功-------------------------------" % (employee_id.name))
|
||||
_logger.info("-------------------------%s创建成功-------------------------------" % (employee_id.name))
|
||||
return {"Result": 0, "Msg": "添加成功"}
|
||||
|
||||
@route('/api/v1/record/face', methods=['POST'], type='json', auth='none', csrf=False)
|
||||
|
||||
@@ -230,6 +230,8 @@
|
||||
<button name="action_temporary_payslip_wizard" string="导入临时工资项" type="object" class="oe_highlight"/>
|
||||
<button name="action_refresh_from_work_entries" string="重新计算" type="object" class="oe_highlight"/>
|
||||
</header>
|
||||
<button name="put_button" string="推送" type="object" class="oe_highlight"/>
|
||||
<button name="open_record" string="详情" type="object" class="oe_highlight"/>
|
||||
<field name="employee_id" string="姓名" options="{'no_open': True}" decoration-danger="is_bold" decoration-bf="is_bold"/>
|
||||
<field name="date_of_entry" optional="show"/>
|
||||
<field name="struct_id" string="职级" optional="show" column_invisible="1"/>
|
||||
@@ -302,8 +304,6 @@
|
||||
<field name="is_salary_push" column_invisible="1"/>
|
||||
<field name="is_push" column_invisible="1"/>
|
||||
<field name="is_bold" optional="hide"/>
|
||||
<button name="put_button" string="推送" type="object" class="oe_highlight"/>
|
||||
<button name="open_record" string="详情" type="object" class="oe_highlight"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user