shcool/yuthon_attendance/data/demo.xml
2026-07-31 20:38:10 +08:00

32 lines
1.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- 演示数据出勤记录。employee_id 通过 ref 引用 yuthon_employee 的 demo。 -->
<!-- 张三9月2日正常、9月3日迟到 -->
<record id="attendance_zhang_0902" model="yuthon.attendance">
<field name="employee_id" ref="yuthon_employee.employee_zhang"/>
<field name="date">2024-09-02</field>
<field name="check_in" eval="datetime.datetime(2024, 9, 2, 8, 30, 0)"/>
<field name="check_out" eval="datetime.datetime(2024, 9, 2, 17, 30, 0)"/>
</record>
<record id="attendance_zhang_0903" model="yuthon.attendance">
<field name="employee_id" ref="yuthon_employee.employee_zhang"/>
<field name="date">2024-09-03</field>
<field name="check_in" eval="datetime.datetime(2024, 9, 3, 9, 35, 0)"/>
<field name="check_out" eval="datetime.datetime(2024, 9, 3, 17, 30, 0)"/>
</record>
<!-- 李四9月2日缺勤无签到 -->
<record id="attendance_li_0902" model="yuthon.attendance">
<field name="employee_id" ref="yuthon_employee.employee_li"/>
<field name="date">2024-09-02</field>
</record>
<!-- 王五9月2日正常 -->
<record id="attendance_wang_0902" model="yuthon.attendance">
<field name="employee_id" ref="yuthon_employee.employee_wang"/>
<field name="date">2024-09-02</field>
<field name="check_in" eval="datetime.datetime(2024, 9, 2, 8, 50, 0)"/>
<field name="check_out" eval="datetime.datetime(2024, 9, 2, 18, 0, 0)"/>
</record>
</odoo>