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

[IMP] default_warehouse_from_sale_team: hook to fill allowed sales teams T#79454 #1673

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

luisg123v
Copy link
Contributor

@luisg123v luisg123v commented Jul 6, 2024

Implement a hook to fill allowed sales teams in users that are already
a member of any team.

Since this module implements a feature to restrict which sales teams a
user may be a member of, users that already belong to any team are
configured to be allowed for those teams, to avoid
inconsistencies between allowed and already-configured memberships. In
other words, if a user already belongs to a team, it most likely means
they should be allowed to belong to it, so allowance is granted.

@xmglord
Copy link
Contributor

xmglord commented Jul 6, 2024

commit description:
f.ill -> fill
missing final dot at the first paragraph
same comments as in docstring

@luisg123v luisg123v force-pushed the 17.0-default_hook_allowed-luisg branch 3 times, most recently from b941986 to 94c7cc1 Compare July 6, 2024 04:35
@luisg123v
Copy link
Contributor Author

@xmglord Fixes to commit messages applied.

@xmglord
Copy link
Contributor

xmglord commented Jul 6, 2024

@xmglord Fixes to commit messages applied.

Not applied yet

@luisg123v luisg123v changed the title [IMP] default_warehouse_from_sale_team: hook to fill allowed salesteams T#79454 [IMP] default_warehouse_from_sale_team: hook to fill allowed sales teams T#79454 Jul 6, 2024
Implement a hook to fill allowed sales teams in users that are already
a member of any team.

Since this module implements a feature to restrict which sales teams a
user may be a member of, users that already belong to any team are
configured to be allowed for those teams, to avoid
inconsistencies between allowed and already-configured memberships. In
other words, if a user already belongs to a team, it most likely means
they should be allowed to belong to it, so allowance is granted.
@luisg123v luisg123v force-pushed the 17.0-default_hook_allowed-luisg branch from 94c7cc1 to df6ae5d Compare July 6, 2024 17:57
@luisg123v luisg123v requested a review from xmglord July 6, 2024 17:59
Copy link
Contributor

@xmglord xmglord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@TeposteAJ TeposteAJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@luisg123v luisg123v merged commit df6ae5d into Vauxoo:17.0 Jul 8, 2024
3 checks passed
@luisg123v luisg123v deleted the 17.0-default_hook_allowed-luisg branch July 8, 2024 17:42
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.

4 participants