-
-
Notifications
You must be signed in to change notification settings - Fork 671
[17.0][ADD] pos_user_restrict_stripe_bypass_user: New module pos_user_restrict_stripe_bypass_user #1324
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
base: 17.0
Are you sure you want to change the base?
[17.0][ADD] pos_user_restrict_stripe_bypass_user: New module pos_user_restrict_stripe_bypass_user #1324
Conversation
1efc4f6 to
9bc56f9
Compare
BernatObrador
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ppyczko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, code review
mpascuall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Hi @eLBati, can you review please? |
|
Sorry for ping here @legalsylvain, it's ready for merge? |
|
It's ready for merge @legalsylvain ? |
…_restrict_stripe_bypass_user
9bc56f9 to
b995ee2
Compare
|
Sorry for ping here @ivantodorovich, seems it's ready for merge |
ivantodorovich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
LGTM, just one small comment about the context key value, that's supposed to be a boolean AFAICS.
It still works like this, cause the string "bypass_pos_user" is a truthy value, but for clarity I suggest being more explicit
Pre-approving
| if self.env.user.has_group( | ||
| "pos_user_restriction.group_assigned_points_of_sale_user" | ||
| ): | ||
| self = self.with_context(bypass_pos_user="bypass_pos_user") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self = self.with_context(bypass_pos_user="bypass_pos_user") | |
| self = self.with_context(bypass_pos_user=True) |
(other cases too)
This module allows you to use stripe in POS with the group user assigned POS only.
cc https://github.com/APSL 167743
@miquelalzanillas @lbarry-apsl @mpascuall @ppyczko @javierobcn @BernatObrador please review