Repository navigation
Conversation
* allow contracts with different workday lengths for different employees of the same company. * use only the resource.calendar of the contracts to define the length of a workday, instead of using the resource.calendar of the company. * improve compatibility with hr_holidays. * test and fix access rights.
By splitting this method up, it will be easier for me to do some extension work elsewhere. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
…eger id Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
avoid error with contracts without a resource_calendar_id.
* forward-port changes from resource_work_time_from_contracts 12.0.2.0.0. * remove useless patch hook as the code has been refactored into a separate method: hr.leave._get_attendances(). * fix hr.leave.type create values in test. * replace call to hr.leave._onchange_request_parameters() to _compute_date_from_to() in tests, as the former doesn't exist anymore and has been replaced by the latter. * replace calls to the deprecated resource.mixin.list_normal_work_time_per_day() by list_attendance_time_per_day() in tests.
* fix result of resource.mixin._get_work_days_data_batch(): it must be a dict containing the results for all records, indexed by id. * remove redundant readonly=True arguments on related fields. * remove warning "Redundant default on resource.resource.calendar_id"
use the same default rounding mechanism as in 16.0: round only the total number of days instead of using per-day rounding with a factor.
huguesdk
force-pushed
the
16.0-mig-forward-port-resource_work_time_from_contracts-12.0.2.0.0
branch
from
September 9, 2026 12:08
63b39d8 to
e2f831b
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.
description
resource_work_time_from_contracts12.0.2.0.0.resource.mixin._get_work_days_data_batch().Redundant default on resource.resource.calendar_id(fixes Redundant default on warnings on models implementingresource_mixin#311).