Ajoute bouton pour valider les work entries#1
Open
Hugo-Trentesaux wants to merge 18 commits into18.0-add_hr_work_entryfrom
Open
Ajoute bouton pour valider les work entries#1Hugo-Trentesaux wants to merge 18 commits into18.0-add_hr_work_entryfrom
Hugo-Trentesaux wants to merge 18 commits into18.0-add_hr_work_entryfrom
Conversation
Member
|
Merci @Hugo-Trentesaux Tu l'as sûrement déjà étudié, mais il me semble que ça fait ce que tu voudrais faire non ? |
hides button if user does not have rights eslint sort import fails but I do not understand why
| <?xml version="1.0" encoding="UTF-8" ?> | ||
| <templates xml:space="preserve"> | ||
| <t | ||
| t-name="hr_work_entry_validate.calendar.controlButtons" |
Member
There was a problem hiding this comment.
Il te faut pas garder le t-name ?
Hugo-Trentesaux
commented
Nov 10, 2025
hr_work_entry_validate/static/src/views/calendar/calendar_controller.xml
Show resolved
Hide resolved
remi-filament
pushed a commit
that referenced
this pull request
Nov 19, 2025
c083f5c to
f082977
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ajoute un bouton sur la vue calendrier des work entries :
Le bouton est désactivé quand aucune entrée de la période n'est en brouillon.
Quand au moins une entrée est en brouillon, cliquer sur le bouton valide toutes les entrées en brouillon de la période en cours. Une notification est affichée avec le nombre d'entrées validées en cas de succès. Une notification d'erreur est affichée en cas d'erreur.
J'ai mis un peu trop de temps pour en arriver là, mais ça m'a permis de mieux comprendre la vue calendrier et owl. Par contre, je ne suis pas satisfait de la méthode de patch. J'aimerais pouvoir patcher une version du calendar controller uniquement utilisée pour les work entries, mais comme c'est le calendar controller générique qui est utilisé, on patche tout et donc le patch sera présent dans n'importe quelle vue calendrier (même si inutilisé).