Skip to content

[16.0][MIG] beesdoo_shift_swap -> shift_change#572

Open
remytms wants to merge 87 commits into16.0from
16.0-mig-beesdoo_shift_swap
Open

[16.0][MIG] beesdoo_shift_swap -> shift_change#572
remytms wants to merge 87 commits into16.0from
16.0-mig-beesdoo_shift_swap

Conversation

@remytms
Copy link
Collaborator

@remytms remytms commented Jan 9, 2026

Description

This brings shift_change which brings some features of the the beesdoo_shift_swap module.

It keeps only the swap mechanism. So regular worker can only unsubscribe from a shift and subscribe to a new empty one (only in the one already generated shifts).

Odoo task (if applicable)

task

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.

MatteoLdx and others added 30 commits December 22, 2025 15:34
Signed-off-by: Carmen Bianca Bakker <[email protected]>
@remytms remytms force-pushed the 16.0-mig-beesdoo_shift_swap branch 4 times, most recently from 3d07985 to 030dfe4 Compare February 12, 2026 13:06
@remytms remytms force-pushed the 16.0-mig-beesdoo_shift_swap branch from 030dfe4 to 40f73c9 Compare February 12, 2026 14:29
@polchampion
Copy link
Collaborator

@remytms suggestion : can you reword "Change the same shift maximum" to "Maximum number of changes" and the description "Number of time the same shift can be changed" to "Maximum number of changes to any particular original shift"

@remytms remytms force-pushed the 16.0-mig-beesdoo_shift_swap branch 5 times, most recently from 679425b to bcf2dcf Compare March 11, 2026 17:52
@remytms remytms force-pushed the 16.0-mig-beesdoo_shift_swap branch from bcf2dcf to 26ed7c1 Compare March 11, 2026 18:18
remytms added 4 commits March 18, 2026 14:53
- remove useless group_by
- prevent creating a new shift from the changes
In a controller, there is no transaction by default. So when calling
create(), even if an error occurs, the object is written to the DB.

Here, we need that Odoo rollback in case of an error during the creation
of a shift change.
The controller overwrite the method available_shift_irregular_worker().
But this overwrite was not generic enough. It causes errors when the
definition of the parent changes.
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.

6 participants