Odoo BuildOdoo Build
Home
Upgrade
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Upgrade
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Snippets

    • Account
    • Account Accountant
    • Account Asset
    • Account Batch Payment
    • Account Budget
    • Account Ebics Batch
    • Account Financial Report
    • Account Followup
    • Account Journal Items Report
    • Account Reports
    • Account Sale Timesheet Report
    • Agreement
    • Agreement Legal
    • Auth Api Key
    • Base
    • Base Install Request
    • Base Location
    • Business Requirement
    • Calendar
    • Certificate Planer
    • Contract
    • Crm
    • Crm Iap Lead Enrich
    • Delivery
    • Digest
    • Fleet
    • Forestry Timesheet
    • Gio Payroll Custom
    • Helpdesk
    • Hr
    • Hr Attendance
    • Hr Attendance Kanban
    • Hr Attendance Report Add Flexitime
    • Hr Contract
    • Hr Employee Attendance Report
    • Hr Expense
    • Hr Holidays
    • Hr Holidays Delegations
    • Hr Payroll
    • Hr Recruitment
    • Hr Skills
    • Hr Timesheet
    • Industry Fsm
    • Industry Fsm Sale
    • Ir Model
    • Ir Ui View
    • Knowledge
    • L10n Ch
    • L10n Ch Qr Isr Invoice Import
    • L10n Din5008
    • Mail
    • Mail Activity Board
    • Mail Tracking
    • Maintenance
    • Maintenance Plan
    • Mrp
    • Mrp Account
    • Mrp Workorder
    • Payment
    • Portal
    • Printnode Base
    • Product
    • Project
    • Project Enterprise
    • Purchase
    • Purchase Requisition
    • Purchase Requisition Send
    • Res Groups
    • Resource
    • Sale
    • Sale Blanket Order
    • Sale Management
    • Sale Margin
    • Sale Order Contact Person
    • Sale Order Line Date
    • Sale Order Notes
    • Sale Order Picking Note
    • Sale Partner Incoterm
    • Sale Product Set
    • Sale Subscription
    • Sale Timesheet
    • Stock
    • Stock Account
    • Stock Delivery
    • Stock Delivery Note
    • Subscription Oca
    • Survey
    • Timesheet Grid
    • Web
    • Website
    • Website Discount Voucher
    • Website Sale

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

Edit this page
Last Updated: 5/13/26, 2:15 PM
Contributors: Janik von Rotz
Prev
Hr Contract
Next
Hr Expense