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

[14.0][sale_commission] #501

Open
2 tasks
matteoopenf opened this issue Jan 22, 2024 · 1 comment
Open
2 tasks

[14.0][sale_commission] #501

matteoopenf opened this issue Jan 22, 2024 · 1 comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@matteoopenf
Copy link

matteoopenf commented Jan 22, 2024

Module

sale_commission

Describe the bug

I have the following problem.
I have an installation of odoo with 9 companys, I have three agents. The agent is agent for more contact in every company.
So if I try from UI to use that search

search="_search_agents",
I have this error.

image based on this rule
https://github.com/odoo/odoo/blob/6b9b598fbb29d0bd22172dd346f9b36fae43e0bd/addons/sale/security/sale_security.xml#L49

that happen because during the search the research is done in all sale.order.line e not in only the selected companys

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Create one o more agent
  2. Create 2 or more company
  3. create some contact in every company ad assign the same agent
  4. Now create an order in every company to a contact have the sames agents
  5. now try to search in ase on field partner_agent_ids and have the problem on the screen

Expected behavior
No security problem, the search works fine

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant