Skip to content

Conversation

@HashemKhaled
Copy link

@HashemKhaled HashemKhaled commented Nov 4, 2025

Steps to reproduce:
Navigate to Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Leads to an error. [Reference Video]

Reason:
The op function is a comparison operator function that expects two values to compare and we are only passing to it leave_type.virtual_remaining_leaves parameter.

Solution:
Added the missing value parameter.

Task: 5238200

@robodoo
Copy link

robodoo commented Nov 4, 2025

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

@HashemKhaled HashemKhaled self-assigned this Nov 4, 2025
Copy link

@mepe-odoo mepe-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello your commit message is not correct :D
image

**Steps to reproduce:**
Navigate to Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Leads to an error.

Reference Video: https://drive.google.com/file/d/1vi_apL24Km5tSomQtwcTArqqWvrBR5ni/view?usp=drive_link

**Reason:**
The `op` function is a comparison operator function that expects two values to compare and we are only passing to it `leave_type.virtual_remaining_leaves` parameter.

**Solution:**
Added the missing `value` parameter.

Task: 5238200
@HashemKhaled HashemKhaled force-pushed the master-hr-onboarding-fix_leave_type_search-hkafe branch from 8370a8c to d8fbc33 Compare November 5, 2025 10:22
@HashemKhaled
Copy link
Author

Hello your commit message is not correct :D image

Hello, thanks for pointing me out to this! I thought we do not need to do it for small changes 🫣

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.

4 participants