Skip to content

[6599][IMP] hr_attendance_flex_rest_time: improve compute logic#74

Open
AungKoKoLin1997 wants to merge 1 commit into18.0from
6599-fix-hr_attendance_rest_time
Open

[6599][IMP] hr_attendance_flex_rest_time: improve compute logic#74
AungKoKoLin1997 wants to merge 1 commit into18.0from
6599-fix-hr_attendance_rest_time

Conversation

@AungKoKoLin1997
Copy link
Copy Markdown
Contributor

@kanda999
Copy link
Copy Markdown
Contributor

@AungKoKoLin1997
If I’m not mistaken, an Officer can update their own record as long as it is not the REST TIME field, right?

If that is the case, I think it would be better to allow them to update REST TIME as well, rather than linking it to another module.

@AungKoKoLin1997
Copy link
Copy Markdown
Contributor Author

If I’m not mistaken, an Officer can update their own record as long as it is not the REST TIME field, right?

@kanda999 It only happens when we have hr_attendance_mange_own module is installed and add the new group for the officer.

If that is the case, I think it would be better to allow them to update REST TIME as well, rather than linking it to another module.

My current approach is not linking each other. There will no issue even hr_attendance_mange_own is not installed.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6599-fix-hr_attendance_rest_time branch from c9693a4 to 9e56448 Compare April 14, 2026 07:40
@AungKoKoLin1997 AungKoKoLin1997 changed the title [6599][IMP] hr_attendance_flex_rest_time: Make compatible with hr_attendance_manage_own [6599][ADD] hr_attendance_flex_rest_time_manage_own Apr 14, 2026
@AungKoKoLin1997
Copy link
Copy Markdown
Contributor Author

@kanda999 I created a new glue module.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6599-fix-hr_attendance_rest_time branch from 9e56448 to 1cf7dca Compare April 14, 2026 08:18
@AungKoKoLin1997
Copy link
Copy Markdown
Contributor Author

I have no idea why test case is failed in this PR. There is no issue in my dev server.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6599-fix-hr_attendance_rest_time branch 2 times, most recently from 25d679b to 2f178a3 Compare April 15, 2026 09:17
@AungKoKoLin1997
Copy link
Copy Markdown
Contributor Author

I have no idea why test case is failed in this PR. There is no issue in my dev server.

Fixed it. It is because of the attendance is not approved by default and odoo standard is approved by default.

@yostashiro
Copy link
Copy Markdown
Member

As discussed, we probably don't need this module. We should update hr_attendance_flex_rest_time instead to allow officers (or anyone) to be able to edit their own rest times.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6599-fix-hr_attendance_rest_time branch from 2f178a3 to a370892 Compare April 16, 2026 01:54
@AungKoKoLin1997 AungKoKoLin1997 changed the title [6599][ADD] hr_attendance_flex_rest_time_manage_own [6599][IMP] hr_attendance_flex_rest_time: improve compute logic Apr 16, 2026
@AungKoKoLin1997
Copy link
Copy Markdown
Contributor Author

I updated the hr_attendance_flex_rest_time instead of new glue module.

Copy link
Copy Markdown
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants