Hr Employee Attendance Report
Hr Employee Template
Add Weekday
ID: mint_system.hr_employee_attendance_report.hr_employee_template.add_weekday
Inherit ID: hr_employee_attendance_report.hr_employee_template
<xpath expr="//td[@id='date']" position="inside">
<t t-out="attendance['date']" t-options="{'widget': 'date', 'format': 'EEE'}"/>
</xpath>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.add_weekday.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.add_weekday.xml
Attendance Table Attributes
ID: mint_system.hr_employee_attendance_report.hr_employee_template.attendance_table_attributes
Inherit ID: hr_employee_attendance_report.hr_employee_template
<data priority="50">
<xpath expr="//table[@name='table_attendance']" position="attributes">
<attribute name="class">table table-sm attendances-table</attribute>
<attribute name="style">width: 100%; font-size: 7pt</attribute>
</xpath>
</data>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.attendance_table_attributes.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.attendance_table_attributes.xml
Attendances Table Columns
ID: mint_system.hr_employee_attendance_report.hr_employee_template.attendances_table_columns
Inherit ID: hr_employee_attendance_report.hr_employee_template
<data priority="50">
<xpath expr="//th[@name='th_date']" position="replace">
<th class="text-start" name="th_date">
Datum
</th>
</xpath>
<xpath expr="//th[@name='th_planned_hours']" position="replace">
<th class="text-end" name="th_planned_hours" t-if="fixed_work_hours">
Soll Zeit [h]
</th>
</xpath>
<xpath expr="//th[@name='th_leave_hours']" position="replace">
<th class="text-end" name="th_leave_hours" t-if="fixed_work_hours">
Abw. [h]
</th>
</xpath>
<xpath expr="//th[@name='th_worked_hours']" position="replace">
<th class="text-end" name="th_worked_hours">
Ist Zeit [h]
</th>
</xpath>
<xpath expr="//th[@name='th_overtime']" position="replace">
<th class="text-end" name="th_overtime" t-if="fixed_work_hours">
Gleitzeit [h]
</th>
</xpath>
</data>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.attendances_table_columns.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.attendances_table_columns.xml
Change Column Order
ID: mint_system.hr_employee_attendance_report.hr_employee_template.change_column_order
Inherit ID: hr_employee_attendance_report.hr_employee_template
<data priority="50">
<xpath expr="//th[@name='th_leave_hours']" position="before">
<xpath expr="//th[@name='th_worked_hours']" position="move"/>
</xpath>
<!-- move worked_hours td before leave_hours td -->
<xpath expr="//td[@id='leave_hours']" position="before">
<xpath expr="//td[@id='worked_hours']" position="move"/>
</xpath>
</data>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.change_column_order.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.change_column_order.xml
Replace Overtime
ID: mint_system.hr_employee_attendance_report.hr_employee_template.replace_overtime
Inherit ID: hr_employee_attendance_report.hr_employee_template
<data priority="50">
<xpath expr="//th[@name='th_overtime']" position="replace">
<th class="text-end" name="th_overtime" t-if="fixed_work_hours">
Gleitzeit
</th>
</xpath>
<xpath expr="//th[@name='th_overtime_sum']" position="replace">
<th class="text-end" name="th_overtime_sum">
Gleitzeit
</th>
</xpath>
<xpath expr="//th[@name='th_overtime_total']" position="replace">
<th class="text-end" name="th_overtime_total">
Gleitzeit ges.
</th>
</xpath>
</data>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.replace_overtime.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.replace_overtime.xml
Replace Report Head
ID: mint_system.hr_employee_attendance_report.hr_employee_template.replace_report_head
Inherit ID: hr_employee_attendance_report.hr_employee_template
<data priority="50">
<xpath expr="//div[@name='report_head']" position="replace">
<div name="report_head">
<div style="background-color: black; color: white; padding: 10px;">
<h2 class="attendance-report" style="font-size:20pt; margin: 0; font-weight: bold;">Stundenrapport
<t t-esc="date_label"/>
</h2>
</div>
<p style="margin-top: 10px;"><span class="light-text">Name:</span> <span t-out="doc.name"/>
</p>
</div>
</xpath>
</data>Edit: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.replace_report_head.xml
Source: snippets/mint_system.hr_employee_attendance_report.hr_employee_template.replace_report_head.xml