Skip to content

[IMP] empty - #5248

Open
arpi-odoo wants to merge 4 commits into
master-hr-onboardingfrom
master-hr-onboarding-aryep
Open

[IMP] empty#5248
arpi-odoo wants to merge 4 commits into
master-hr-onboardingfrom
master-hr-onboarding-aryep

Conversation

@arpi-odoo

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Aug 28, 2026

Copy link
Copy Markdown

This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding, it needs to be retargeted before it can be merged.

@arpi-odoo
arpi-odoo force-pushed the master-hr-onboarding branch 2 times, most recently from 9019317 to 6734863 Compare September 1, 2026 11:36
@aryep-odoo
aryep-odoo force-pushed the master-hr-onboarding-aryep branch from e757f43 to d70517f Compare September 1, 2026 12:04
arpi-odoo and others added 2 commits September 1, 2026 14:42
…tab in employee

The button to create new contract that was in the employee's payroll ta was appearing even when no contract dates were selected, which was incorrect behavior.

Is a problem because in order to create a contract you need both starting and closing dates.

To avoid code duplication the solution was to target the fix in the 'ButtonNewContract' custom widget that is only used in those views in all places (community, enterprise and addons). Now, it is dynamically verified if the 'contract_date_start' exists before rendering the button.

task-6519063
@aryep-odoo
aryep-odoo force-pushed the master-hr-onboarding-aryep branch from d70517f to 6f1e088 Compare September 1, 2026 12:42
Aytime a Time Off was tried to be assigned through management an error was appearing when opening the field to select the type of it.

To reproduce, it is only needed to try to create a leave from the management menu and opening the selection input for field for 'Time type'

The problem was located in the search function for calculation of remaining leaves available to allocate, where the operator for comparison was being treated as a unary operator instead of binary.

Solution was to update the calling function to it accetps the value to be compared against.

task-6522957
In an Employee profile, on the 'Personal' tab there are many fields that are versioned, aka, they are linked to different contracts, so the values can changed or be updated through time. This wasn't the case for the fields 'certificate' and 'study_field', that could benefit from being versioned through different contracts.

To achieve that, the fields were added to the HR Version class/model, following the same patterns for other fields in the same category.

task-6522860
see odoo-dev/enterprise#1474
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants