考勤机

This commit is contained in:
李鹏宇
2026-09-07 19:20:41 +08:00
parent 6cc797e6c0
commit cae47c0b56
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@
'views/attendance_iot_views.xml',
'views/attendance_iot_log_views.xml',
# 'views/inherit_hr_employee_views.xml',
'views/inherit_hr_employee_tree_views.xml',
'wizard/attendance_iot_manager_wizard_views.xml',
'views/iot_message.xml'
],
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- 员工列表顶部加考勤机拷贝按钮 -->
<record id="view_employee_tree_inherit_attendance_iot" model="ir.ui.view">
<field name="name">hr.employee.tree.attendance.iot.buttons</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="inside">
<header>
<!-- 批量拷贝:弹窗由用户手动勾选要同步的考勤机 -->
<button name="action_attendance_iot_batch_copy" string="批量拷贝" type="object" class="btn-primary" display="always"/>
<!-- 同步到全部设备:弹窗默认带出公司全部考勤机 -->
<button name="action_attendance_iot_sync_all" string="同步到全部设备" type="object" class="btn-primary" display="always"/>
</header>
</xpath>
</field>
</record>
</odoo>