Skip to content

Commit

Permalink
verdigado_attendance: #42 recalculate overtime of selected attendances
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Nov 6, 2023
1 parent c49a7cd commit 135f8ef
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions verdigado_attendance/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,26 @@ msgstr "Gleitzeitkonto"
msgid "Expected Hours"
msgstr "Soll-Stunden"

#. module: verdigado_attendance
#: model:res.groups,name:verdigado_attendance.group_verdigado_employee
msgid "Employee"
msgstr "Mitarbeiter*in"

#. module: verdigado_attendance
#: model:res.groups,name:verdigado_attendance.group_verdigado_manager
msgid "Manager"
msgstr ""

#. module: verdigado_attendance
#: model:res.groups,name:verdigado_attendance.group_verdigado_officer
msgid "Officer"
msgstr "Personalverantwortliche*r"

#. module: verdigado_attendance
#: model:ir.actions.server,name:verdigado_attendance.action_hr_attendance_overtime_recalculation
msgid "Recalculate Overtime"
msgstr "Neuberechnung der Überstunden"

#. module: hr_attendance_break
#: model:ir.model.fields.selection,name:hr_attendance_break.selection__hr_attendance_reason__action_type__break
msgid "Break"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@
parent="hr.menu_human_resources_configuration"
sequence="1"
/>

<record model="ir.actions.server" id="action_hr_attendance_overtime_recalculation">
<field name="name">Recalculate Overtime</field>
<field name="model_id" ref="hr_attendance.model_hr_attendance" />
<field name="binding_model_id" ref="hr_attendance.model_hr_attendance" />
<field name="state">code</field>
<field name="code">
for record in records:
record._update_overtime()
</field>
</record>
</odoo>

0 comments on commit 135f8ef

Please sign in to comment.