Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 28, 2025

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #203935

tivisse and others added 2 commits March 28, 2025 20:22
This reverts commit af591fe.

X-original-commit: 047035c
…cations

Steps to reproduce the bug:
- Install Timeoff app
- Switch to a company that has no employee linked to loggedInUser
- Open Timeoff, Management then Allocation and create a New allocation

Issue:
_compute_number_of_hours_display is called due to onChange of
number_of_days when opening the form view. The compute hours function
displays as the initial value the number of hours/day of the employee
of the allocation.

The allocation defaults to the employee linked to loggedInUser, but
since the company has none, the allocation form employee is set to
empty, causing the compute hours function to fail and throw a traceback.

opw-4648319
opw-4652752
opw-4649177

X-original-commit: 0cdd3de
@robodoo
Copy link
Contributor

robodoo commented Mar 28, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 28, 2025

This PR targets saas-18.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 28, 2025
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 28, 2025
@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 28, 2025

@tivisse ci/runbot failed on this forward-port PR

robodoo pushed a commit that referenced this pull request Mar 31, 2025
This reverts commit af591fe.

X-original-commit: 047035c
Part-of: #204038
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
robodoo pushed a commit that referenced this pull request Mar 31, 2025
…cations

Steps to reproduce the bug:
- Install Timeoff app
- Switch to a company that has no employee linked to loggedInUser
- Open Timeoff, Management then Allocation and create a New allocation

Issue:
_compute_number_of_hours_display is called due to onChange of
number_of_days when opening the form view. The compute hours function
displays as the initial value the number of hours/day of the employee
of the allocation.

The allocation defaults to the employee linked to loggedInUser, but
since the company has none, the allocation form employee is set to
empty, causing the compute hours function to fail and throw a traceback.

opw-4648319
opw-4652752
opw-4649177

closes #204038

X-original-commit: 0cdd3de
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
@robodoo robodoo closed this Mar 31, 2025
@fw-bot fw-bot deleted the saas-18.1-18.0-holidays-warning-yti-426305-fw branch April 7, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants