Skip to content

[IMP] empty - #5203

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

[IMP] empty#5203
arpi-odoo wants to merge 4 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 3 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
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