Skip to content

[IMP] empty - #5203

Open
arpi-odoo wants to merge 7 commits into
master-hr-onboardingfrom
master-hr-onboarding-tomic
Open

[IMP] empty#5203
arpi-odoo wants to merge 7 commits into
master-hr-onboardingfrom
master-hr-onboarding-tomic

Conversation

@arpi-odoo

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Aug 3, 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.

Tony Michel (tomic) and others added 6 commits August 4, 2026 16:10
Steps to reproduce:
- Open an employee record with no contract start date set.
- Observe the Contract section in the form view.
- The "New Contract" button is visible when it should not be.

Cause:
The `button_new_contract` widget declaration in `hr_employee_views.xml`
lacked an `invisible` attribute checking for `contract_date_start`.

Solution:
Add `invisible="not contract_date_start"` to the `button_new_contract`
widget in `hr_employee_views.xml` so that the button is hidden when no
contract start date is present.

Task: 6443374
Steps to reproduce:
- Open the Time Off app.
- Create a new time off request.
- Click on the "Time Off Type" dropdown field.
- A traceback occurs (TypeError: gt expected 2 arguments, got 1).

Cause:
In `hr_work_entry_type.py`, the `_search_virtual_remaining_leaves` method's
internal `is_valid` function evaluates `op(work_entry_type.virtual_remaining_leaves)`
with only one argument instead of passing the comparison value as the second argument.

Solution:
Pass `value` as the second argument to `op()` in `_search_virtual_remaining_leaves`
(i.e. `op(work_entry_type.virtual_remaining_leaves, value)`).

Task: 6446513
…_time_off_type-tomic

[FIX] hr_holidays: fix search on virtual_remaining_leaves
…month

Restricts the available days in the day selection widget based on the
selected month (example : limiting days to 28/29 for February, 30 for April).

This improves UX in accrual plans level form by preventing invalid date
configurations when setting up accrual milestones.

Task: 6455207
…x-tomic

[IMP] hr_holidays: dynamically filter day selection options
Currently, the work permit information (such as `permit_no` and its associated
fields) is stored directly on the `hr.employee` model.

This prevents keeping an accurate history of an employee's work permit details
over time as their status evolves.

To address this, move `permit_no` and its related work permit fields
(`work_permit_expiration_date`, `work_permit_name`, `work_permit_scheduled_activity`)
from `hr.employee` to `hr.version`. The fields are now versioned on `hr.version`
and accessed via delegation on `hr.employee`.

Task: 6448688
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