Rémy Taymans
cf8fac7f37
[FIX] b_shift: Properly resigning worker
This fix the case where a worker is unsubscribed from a shift where he
is supercooperator.
In the function unsubscribed_from_today, when removing the supercoop,
the field is_regular was also set to False. I seams that this is not
correct as this field is related to the worker_id not to the supercoop.
Also, I found other issues as when removing a worker_id the fields
is_regular and is_compensation was not reset.
This let me think about other cases where worker_id is emptied, the
is_regular and is_compensation would be never been reset if the
programmer doesn't think to reset it.
So I modified the constrains on these field in order to have these field
reset properly when worker_id is changed.
6 years ago
Rémy Taymans
2dc776735e
[FIX] b_shift: Unsubscribe resigning worker
6 years ago
Rémy Taymans
d2ca6c789d
Revert "[FIX] b_shift: Too late shift validation"
This reverts commit 351a107a65
.
This commit try to fix with a naive approach that doesn't work in every
case.
A better fix must be done in the future.
6 years ago
Rémy Taymans
351a107a65
[FIX] b_shift: Too late shift validation
This commit brings fix a bug that occur when a worker do a shift before
her future_alert_date and the shift was marked as attended after the
future_alert_date. In such a case, the worker fell in alert state and
get a -2. This don't fix the fact that the worker fall in alert. But
brings correction when the shift is finally marked as attended.
6 years ago
Rémy Taymans
b3c9da2a87
[FIX] b_shift: Raise error when shift not configured well
6 years ago
Rémy Taymans
2128b99ea5
[FIX] b_shift: Do not show regular info for non regular worker
6 years ago
nicolasjamoulle
ab4e0fbf22
[ADD] beesdoo_shift: add compensation shift option in task
6 years ago
nicolasjamoulle
cb55533d74
[FIX] beesdoo_shift remove only next shifts in planning for unsubscribed workers"
6 years ago
nicolasjamoulle
f9f9696640
[FIX] fix first registration shift
6 years ago
nicolasjamoulle
d0df069801
Makeup on code after review
6 years ago
nicolasjamoulle
276a50d883
[REF] date_domain and to_unsubscribe_super_coop
6 years ago
nicolasjamoulle
120de0499f
[ADD] Remove super cooperative from future planning
6 years ago
nicolasjamoulle
95c16bc6d4
[WIP] Tests in comment
6 years ago
nicolasjamoulle
d572586530
[ADD] remove super_coop_id
6 years ago
nicolasjamoulle
6640ab1425
[FIX] Remove shifts for resigning status
And does not allow to add unsubscribed and resigning statut to a new shift
6 years ago
nicolasjamoulle
ee69368c53
[ADD] Makup code
6 years ago
Rémy Taymans
801235dc3d
[FIX] b_shift: PR #62 and #63
This fixes PR #62 and #63 . It uses the `no_create` and `no_open` options
for `many2many` widget.
6 years ago
nicolasjamoulle
10e244090b
[IMP] _get_info_session_followed made shorter
6 years ago
nicolasjamoulle
9a0cf6357f
Dots alignment
6 years ago
nicolasjamoulle
1790969ab0
[FIX] syntax error break line
6 years ago
nicolasjamoulle
0d424b3204
[ADD] Default information from worker
6 years ago
nicolasjamoulle
6b92a32f38
[ADD] Cannot create worker from field worker_id
6 years ago
nicolasjamoulle
759e5e3cda
[FIX] change domain arguments
6 years ago
nicolasjamoulle
6a82929cc2
[ADD] add domain to replace_id
6 years ago
Rémy Taymans
f1754ee2cd
[FIX] b_shift: Condition to unsubscribe a worker
Quick fix from @tfrancoi .
6 years ago
nicolasjamoulle
d884fcdc3e
[ADD] Date of information session not fill by default
6 years ago
nicolasjamoulle
c4ec95ed10
Followed info session not checked by default
6 years ago
Thibault Francois
f7084b3873
[CHANGE] -1 instead of -2 when not attempting a shift, -2 only when alert time is not set, remove alert time only once you reach +1
6 years ago
Thibault Francois
242fcd7c29
[CHANGE] Change the computation for unsubscribed status of irregular worker
They become unsubscribe when the regular counter fall under a value that can be define in parameter
[FIX] don't show unsubscribed or resigning worker in the list of worker you can assign on a shift
6 years ago
Thibault Francois
c00483309c
[CLEAN] separate timezone logic in another methoda
6 years ago
Rémy Taymans
e0f0d68233
[FIX] b_shift: timezone error in shift generation
The bug was that some shift are 'misstimezoned' near DST moment and for
timezone far from the UTC time. Now the date and time of a shift is
calculated in the local timezone then converted into UTC time to be
stored in database.
6 years ago
Thibault Francois
fc15fd2e58
[TASK 48l] take irregular worker holidays into account: Don't change counterduring cron when they are on holidays
6 years ago
Thibault Francois
20e06efcc7
[ADD][TASK 0048j]
Cooperative status des personnes archivées à archiver aussi
6 years ago
Thibault Francois
c0028af4b6
[FIX][TASK 0048k] Revert info à supprimer quand worker id change
6 years ago
Thibault Francois
58ea43d80a
[IMP][TASK 0048i] Statut a jour mais pas de créneau - cannot shop?
6 years ago
Thibault Francois
49433e8767
[FIX] Double header on partner form
6 years ago
Thibault Francois
2c7323546f
[FIX] Bad hour for shift generated the day of timeshift, use the hour of the shift instead of 00:00:00 to call context_timestamp
6 years ago
Thibault Francois
6ada86b6b8
[FIX] Irregular worker in holiday cannot shop
7 years ago
Thibault Francois
65ca454afc
[FIX] Regular worker in holiday cannot shop
7 years ago
Thibault Francois
6c3110e78d
[ADD] Filter from today to J+ 4
[FIX] Silent error when reverting counter info while status change of task when missing some access right
[IMP] Performance improvement in shift generation: Skip message generation
7 years ago
Thibault Francois
53e45fcd6a
Update temporary_exemption.xml
[Fix] Copy paste of xml ID that shadows the view for holiday wizard
7 years ago
Thibault Francois
5ed90bb39a
[ADD] 0071 - Ajout filtre J-5 dans Shift Management
7 years ago
Rémy Taymans
71f273c3a9
[ADD] beesdoo_shift: Future alert date
7 years ago
Thibault Francois
7d3667c30f
[IMP] 0044_j - cacher la case is-regular si c'est un volant qui est inscrit au shift
7 years ago
Thibault Francois
3c29a5321b
[FIX] 0044_k - empêcher d'inscrire à un shift ou créneau si pas de régime définir: add a domain based on working mode
7 years ago
Thibault Francois
6a5d6e533c
[ADD] 0048g- Statut démissionnaire: possible when unscribed to check the box resigning, the cooperator will be in a specific status resigning
7 years ago
Thibault Francois
9f269c4849
[ADD] beesdoo_shift: S0048 temporary exemption
7 years ago
Thibault Francois
a67825d3d9
[CHANGE] beesdoo_shift: allow to launch auto extension as group_shift_attendance AKA accueil groupe
7 years ago
Thibault Francois
5460dde5d0
[ADD] Don't assign the worker if he is in holiday
7 years ago
Thibault Francois
d6b3f20efe
[FIX] fix 'typo' self instead of rec
7 years ago