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

[15.0][FIX] sale_commission: Salesmen can see invoice from SO #436

Merged

Conversation

pedrobaeza
Copy link
Member

Steps to reproduce:

  • With a user with only sales permission and no invoicing one.
  • Go to an invoiced sales order.
  • Click on the smart-button "Invoice".

You get a permission error on account.invoice.line.agent model.

With this commit, we add read permission to salesmen over that object to avoid the problem. The other option would be to protect the view under the invoicing group, but it's interesting that salesmen can check its own invoices commissions.

@Tecnativa TT44083

Steps to reproduce:

- With a user with only sales permission and no invoicing one.
- Go to an invoiced sales order.
- Click on the smart-button "Invoice".

You get a permission error on `account.invoice.line.agent` model.

With this commit, we add read permission to salesmen over that object
to avoid the problem. The other option would be to protect the view
under the invoicing group, but it's interesting that salesmen can
check its own invoices commissions.

TT44083
@pedrobaeza pedrobaeza added this to the 15.0 milestone Jun 26, 2023
@pedrobaeza
Copy link
Member Author

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-436-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ba34ac5 into OCA:15.0 Jun 27, 2023
6 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f8d13a2. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 15.0-fix-sale_commission-move_permission branch July 4, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants