-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] hr_holidays: keep duration display updated
Versions -------- - 16.0+ Steps ----- 1. Create a leave spanning multiple days; 2. create a public holiday that falls inside that leave; 3. check leave in list view & form view. Issue ----- The leave's duration no longer matches between the two views. In form view, the duration was updated, in list view, it remained unchanged. Cause ----- There's nothing to trigger a recomputation of duration_display when adding/removing leaves. Solution -------- The `number_of_days` field is kept up to date by the usage of `add_to_compute` when modifying leaves. The same can be done for the `duration_display` field. opw-3642500 closes odoo#158296 X-original-commit: 1327b80 Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com> Signed-off-by: Levi Siuzdak <sile@odoo.com>
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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