Skip to content

Commit

Permalink
[MIG][hr_attendance_reason] Fix pre-commit issues (III)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTietze committed Nov 27, 2024
1 parent 11ce2d1 commit 8ab5194
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hr_attendance_reason/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ResCompany(models.Model):
string="Default sign-in reason for attendance screen",
domain=[
("action_type", "=", "sign_in"),
("show_on_attendance_screen", "=", True)
("show_on_attendance_screen", "=", True),
],
check_company=True,
)
Expand All @@ -27,7 +27,7 @@ class ResCompany(models.Model):
string="Default sign-out reason for attendance screen",
domain=[
("action_type", "=", "sign_out"),
("show_on_attendance_screen", "=", True)
("show_on_attendance_screen", "=", True),
],
check_company=True,
)
2 changes: 1 addition & 1 deletion hr_attendance_reason/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ class ResConfigSettings(models.TransientModel):
)
reason_on_attendance_screen_default_sign_out = fields.Many2one(
related="company_id.reason_on_attendance_screen_default_sign_out",
readonly=False
readonly=False,
)
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ patch(ActivityMenu.prototype, {
{
enableHighAccuracy: true,
}
)
);
} else {
await rpc("/hr_attendance/systray_check_in_out", {
// CHANGE: add attendance reason as parameter to rpc call
Expand Down
4 changes: 2 additions & 2 deletions hr_attendance_reason/views/res_config_settings_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<div class="mt16 row">
<label
for="reason_on_attendance_screen_default_sign_in"
string="Default value for sign-in"
class="o_light_label col-lg-4"
string="Default value for sign-in"
class="o_light_label col-lg-4"
/>
<field
name="reason_on_attendance_screen_default_sign_in"
Expand Down

0 comments on commit 8ab5194

Please sign in to comment.