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

[FIX] sale_commission_agent_restrict: Lines access for agents #584

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

SirAionTech
Copy link

@SirAionTech SirAionTech commented Dec 10, 2024

Steps:

  1. Install sale_commission_agent_restrict
  2. Create an internal user for an agent
  3. Assign the group Agent Access / Display only own commission data to the created user
  4. Create a sale order with commissions for the created agent
    Ensure that the salesman (user_id) of the created order is the current user, not the agent.
  5. Log in with the created user
  6. Open the order and click on the Agents button

Observed:
JS error:

Error: Missing field string information for the field 'agent_id' from the 'sale.order.line' model

Expected:
See the agent's commissions

@OCA-git-bot
Copy link
Contributor

Hi @aleuffre,
some modules you are maintaining are being modified, check this out!

@SirAionTech SirAionTech marked this pull request as ready for review December 10, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants