-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
[17.0] [MIG] website_sale_require_login #973
base: 17.0
Are you sure you want to change the base?
[17.0] [MIG] website_sale_require_login #973
Conversation
Example of module which requires such refactoring: https://github.com/it-projects-llc/website-addons/tree/10.0/website_sale_checkout_store [FIX] condition to show normal checkout button was wrong in website_sale_suggest_create_account I was equal to (user_authenticated or not signup_allowed and can_checkout) while it has to be (user_authenticated or not signup_allowed) and can_checkout
This test was expecting sign up to be disabled because `auth_signup` is not in its module graph, but since that addon is autoinstallable, it could be installed without our knowledge. Just make sure signup is disabled before running the public user test, to make it unitary. Also, moved to at-install mode, since the post-install one adds no value.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: e-commerce-14.0/e-commerce-14.0-website_sale_require_login Translate-URL: https://translation.odoo-community.org/projects/e-commerce-14-0/e-commerce-14-0-website_sale_require_login/
8174945
to
1722c67
Compare
8176835
to
b4f8bb9
Compare
b4f8bb9
to
d8fa1a1
Compare
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.
Code and functional review
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.
Change tests but LGTM
|
||
|
||
class TestWebsiteSaleRequireLogin(HttpCase): | ||
def setUp(self): |
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.
Use setUpClass please
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.
See the previous comment about already integrated in core.
[17.0] [MIG] website_sale_require_login