考勤机

This commit is contained in:
李鹏宇
2026-09-08 10:40:05 +08:00
parent 12c8885c74
commit 7e6f6a16b1
2 changed files with 17 additions and 3 deletions
@@ -6,8 +6,8 @@
<field name="arch" type="xml">
<tree editable="bottom" multi_edit="1">
<header>
<button name="%(action_attendance_iot_import_user_wizard_form)d" string="批量拷贝" type="action" />
<button name="action_batch_sync_to_all_devices" string="同步到全部设备" type="object"
<button name="%(action_attendance_iot_import_user_wizard_form)d" string="考勤机创建" type="action" />
<button name="action_batch_sync_to_all_devices" string="考勤机更新" type="object"
help="将勾选员工的人脸数据同步到该员工关联的所有设备"/>
</header>
<field name="employee_id"/>
+15 -1
View File
@@ -49,7 +49,9 @@
<field name="company_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="entrusted_agent_id" groups="yuthon_salary.group_jtbb_user,yuthon_salary.group_wg_user"
domain="[('employee_id.department_id', '=', department_id)]" options="{'no_create': True}"/>
domain="[('employee_id.department_id', '=', department_id)]"
options="{'no_create': True}"
context="{'tree_view_ref': 'yuthon_holiday.view_users_tree_entrusted_agent'}"/>
<field name="days" invisible="1"/>
<field name="employee_id" invisible="1" force_save="1"/>
<field name="main_stay_place" string="主要停留地"/>
@@ -273,6 +275,18 @@
</field>
</record>
<!-- 委托代理人搜索弹窗专用精简树视图:只显示名称和公司,隐藏创建日期/登录/状态/公司1 -->
<record id="view_users_tree_entrusted_agent" model="ir.ui.view">
<field name="name">res.users.tree.entrusted.agent</field>
<field name="model">res.users</field>
<field name="arch" type="xml">
<tree string="用户">
<field name="name"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="hr_leave_batch_search_view" model="ir.ui.view">
<field name="model">hr.leave.batch</field>
<field name="arch" type="xml">