Skip to content

Conversation

@peluko00
Copy link

@peluko00 peluko00 commented Mar 3, 2025

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

@peluko00 peluko00 force-pushed the 17.0-add-pos_user_restrict_stripe_bypass_user branch 10 times, most recently from 1efc4f6 to 9bc56f9 Compare March 4, 2025 06:25
Copy link

@BernatObrador BernatObrador 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

@ppyczko ppyczko left a comment

Choose a reason for hiding this comment

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

LGTM, code review

Copy link

@mpascuall mpascuall left a comment

Choose a reason for hiding this comment

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

LGTM!

@peluko00
Copy link
Author

Hi @eLBati, can you review please?

@peluko00
Copy link
Author

peluko00 commented Jun 6, 2025

Sorry for ping here @legalsylvain, it's ready for merge?

@peluko00
Copy link
Author

It's ready for merge @legalsylvain ?

@peluko00 peluko00 force-pushed the 17.0-add-pos_user_restrict_stripe_bypass_user branch from 9bc56f9 to b995ee2 Compare November 25, 2025 13:21
@peluko00
Copy link
Author

Sorry for ping here @ivantodorovich, seems it's ready for merge

Copy link

@ivantodorovich ivantodorovich left a 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")

Choose a reason for hiding this comment

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

Suggested change
self = self.with_context(bypass_pos_user="bypass_pos_user")
self = self.with_context(bypass_pos_user=True)

(other cases too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants