Skip to content

16.0 fix shift attendance - #603

Merged
github-grap-bot merged 6 commits into
16.0from
16.0-fix-shift_attendance
Sep 21, 2026
Merged

github-grap-bot merged 6 commits into
16.0from
16.0-fix-shift_attendance

Conversation

@remytms

@remytms remytms commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Description

Some fixes for shift_attendance.

Odoo task (if applicable)

(task)[https://gestion.coopiteasy.be/web#view_type=form&model=project.task&id=16880&active_id=16880&menu_id=]

Checklist before approval

  • Tests are present (or not needed).
  • Credits/copyright have been changed correctly.
  • Change log snippet is present.
  • (If a new module) Moving this to OCA has been considered.

Appears when an admin try to validate an attendance sheet with their
credential.

_check_credentials() takes now 2 arguments.
Normal users can not validate an attendance sheet. Their are redirected
to a wizard where a member of group_shift_attendance_sheet_validation
can enter their credential to validate the wizard.

But when a member of group_shift_attendance_sheet_validation view an
attendance sheet, they do not see the Feedback’s fields and they do not
see the Wizard, so they cannot validate a sheet properly. Except if the
validator is member of the shift.gorup_shift_attendance, which is wierd.

Member of the group_shift_attendance_sheet_validation can now fill in
all the fields required to validate an attendance sheet.
.sudo()
.get_param("shift_attendance.card_support")
.get_param("shift_attendance.card_support", "False")
)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Use from odoo.tools import str2bool

Bug occurs when the key "shift_attendance.card_support" does not exist
because get_param() will return False and it will fail with
literal_eval().

If "shift_attendance.card_support" does not exist value should be
considered as False.
@remytms
remytms force-pushed the 16.0-fix-shift_attendance branch from a846257 to a3ea523 Compare September 21, 2026 10:19
@remytms
remytms requested a review from huguesdk September 21, 2026 10:27
@remytms

remytms commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

/ocabot merge patch

@github-grap-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-603-by-remytms-bump-patch, awaiting test results.

@github-grap-bot
github-grap-bot merged commit f2a872a into 16.0 Sep 21, 2026
2 checks passed
@github-grap-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 1b43841. Thanks a lot for contributing to beescoop. ❤️

@github-grap-bot
github-grap-bot deleted the 16.0-fix-shift_attendance branch September 21, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants