Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/odooPublic

[FW][FIX] hr_expense: prevent access error when checking vendor bill warning#202987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

fw-bot
Copy link
Contributor

When a user tries to access a vendor bill where the vendor is their own company, Odoo displays a warning indicating that the user is trying to invoice themselves. To determine whether to show this warning, we check if the partner has any relatedemployee_ids.

However, if the user does not have the"Employees / Officer: Manage all employees" access rights, they cannot check theemployee_ids, leading to an access error when opening the vendor bill.

Steps to Reproduce:

  1. Create a vendor bill where the vendor is set to your own company.
  2. Try to access the vendor bill with a user who does not have"Employees / Officer: Manage all employees" access rights. Issue: An error occurs because the user lacks permission to check the relatedemployee_ids for the vendor.
    Refer to thisvideo for clearer steps.
    opw-4539017

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

Forward-Port-Of:#202033

When a user tries to access a vendor bill where the vendor is their own company,Odoo displays a warning indicating that the user is trying to invoice themselves.To determine whether to show this warning, we check if the partner has anyrelated `employee_ids`.However, if the user does not have the `"Employees / Officer: Manage all employees"`access rights, they cannot check the `employee_ids`, leading to an access errorwhen opening the vendor bill.Steps to Reproduce:1. Create a vendor bill where the vendor is set to your own company.2. Try to access the vendor bill with a user who does not have`"Employees / Officer: Manage all employees" access rights.Issue: An error occurs because the user lacks permission to checkthe related `employee_ids` for the vendor.opw-4539017X-original-commit:0008db8
@robodoo
Copy link
Contributor

Pull request status dashboard

@fw-bot
Copy link
ContributorAuthor

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

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

@robodoorobodoo added the forwardportThis PR was created by @fw-bot labelMar 21, 2025
@C3POdooC3POdoo added the OEthe report is linked to a support ticket (opw-...) labelMar 21, 2025
@elhayyany
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull requestMar 24, 2025
When a user tries to access a vendor bill where the vendor is their own company,Odoo displays a warning indicating that the user is trying to invoice themselves.To determine whether to show this warning, we check if the partner has anyrelated `employee_ids`.However, if the user does not have the `"Employees / Officer: Manage all employees"`access rights, they cannot check the `employee_ids`, leading to an access errorwhen opening the vendor bill.Steps to Reproduce:1. Create a vendor bill where the vendor is set to your own company.2. Try to access the vendor bill with a user who does not have`"Employees / Officer: Manage all employees" access rights.Issue: An error occurs because the user lacks permission to checkthe related `employee_ids` for the vendor.opw-4539017closes#202987X-original-commit:0008db8Signed-off-by: Olivier Colson (oco) <oco@odoo.com>Signed-off-by: Abdelaziz EL HAYYANY (azey) <azey@odoo.com>
@fw-botfw-bot deleted the saas-17.4-17.0-opw-4539017-commercial_partner_id-access-rights-azey-423390-fw branchMarch 31, 2025 11:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
forwardportThis PR was created by @fw-botOEthe report is linked to a support ticket (opw-...)
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@fw-bot@robodoo@elhayyany@C3POdoo

[8]ページ先頭

©2009-2025 Movatter.jp