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

Commits on Jun 26, 2023

  1. [FIX] sale_commission: Salesmen can see invoice from SO

    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 committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    549c58f View commit details
    Browse the repository at this point in the history