Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] account_edi: allow users to read account.edi.format/documnet #163427

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 25, 2024

Steps to Reproduce

  1. Install sale_management and account_edi.
  2. Create a user with admin access in sales but no rights in accounting.
  3. Log in as the new user.
  4. Navigate to a Sales Order that has been invoiced and attempt to view its invoice via the 'Invoices' stat button.

Expected Behavior: The user should be able to view the invoice.

Actual Behavior: An access error is encountered when attempting to view the invoice.

Cause

The access error arises due to restricted permissions for account.edi.format and account.edi.document. Prior to commit 604a47e, all users had access to these models. However, this commit restricted access solely to users with the account.group_account_readonly role, as part of a broader security enhancement to minimize unnecessary access by portal users.

opw-3858685

Forward-Port-Of: #163329

Steps to Reproduce
------------------
1. Install `sale_management` and `account_edi`.
2. Create a user with admin access in sales but no rights in accounting.
3. Log in as the new user.
4. Navigate to a Sales Order that has been invoiced and attempt to view
   its invoice via the 'Invoices' stat button.

Expected Behavior: The user should be able to view the invoice.

Actual Behavior: An access error is encountered when attempting to view
the invoice.

Cause
-----
The access error arises due to restricted permissions for
`account.edi.format` and `account.edi.document`. Prior to commit
604a47e, all users had access to these
models. However, this commit restricted access solely to users with the
`account.group_account_readonly` role, as part of a broader security
enhancement to minimize unnecessary access by portal users.

opw-3858685

X-original-commit: 3be00fa
@robodoo
Copy link
Contributor

robodoo commented Apr 25, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 25, 2024

This PR targets saas-17.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 Apr 25, 2024
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Apr 25, 2024
robodoo pushed a commit that referenced this pull request Apr 25, 2024
Steps to Reproduce
------------------
1. Install `sale_management` and `account_edi`.
2. Create a user with admin access in sales but no rights in accounting.
3. Log in as the new user.
4. Navigate to a Sales Order that has been invoiced and attempt to view
   its invoice via the 'Invoices' stat button.

Expected Behavior: The user should be able to view the invoice.

Actual Behavior: An access error is encountered when attempting to view
the invoice.

Cause
-----
The access error arises due to restricted permissions for
`account.edi.format` and `account.edi.document`. Prior to commit
604a47e, all users had access to these
models. However, this commit restricted access solely to users with the
`account.group_account_readonly` role, as part of a broader security
enhancement to minimize unnecessary access by portal users.

opw-3858685

closes #163427

X-original-commit: 3be00fa
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
@robodoo robodoo closed this Apr 25, 2024
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 OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants