-
-
Notifications
You must be signed in to change notification settings - Fork 534
[18.0][MIG] website_sale_suggest_create_account: Migration to 18.0 #1051
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
[18.0][MIG] website_sale_suggest_create_account: Migration to 18.0 #1051
Conversation
|
Please reduce administrative commits |
| @@ -0,0 +1,47 @@ | |||
| /** @odoo-module */ | |||
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.
| /** @odoo-module */ |
Not necessary in v18
OCA Transbot updated translations from Transifex
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
Added translation using Weblate (German)
Always show 'Process Checkout', not highlighted if user not logged in Suggest to login or signup, according to 'invitation_scope', avoiding too many buttons in cart page Added translation using Weblate (Catalan) Translated using Weblate (Spanish) Currently translated at 100.0% (4 of 4 strings) Translation: e-commerce-12.0/e-commerce-12.0-website_sale_suggest_create_account Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_suggest_create_account/es/
Ensure that 'vat' is not empty for compatibility with website_sale_vat_required module Added translation using Weblate (Dutch)
…with `Environment.manage()` website_sale_suggest_create_account 15.0.1.0.1
[BOT] post-merge updates
- Create setUpClass method - Include context keys for avoiding mail operations overhead. [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: e-commerce-16.0/e-commerce-16.0-website_sale_suggest_create_account Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_suggest_create_account/ Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: e-commerce-16.0/e-commerce-16.0-website_sale_suggest_create_account Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_suggest_create_account/ Translated using Weblate (Spanish) Currently translated at 100.0% (5 of 5 strings) Translation: e-commerce-16.0/e-commerce-16.0-website_sale_suggest_create_account Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_suggest_create_account/es/
…solve conflict between 'website_sale_suggest_create_account' and 'website_sale_checkout_skip_payment' This commit addresses a conflict between the 'website_sale_suggest_create_account' and 'website_sale_checkout_skip_payment' modules. When 'website_sale_suggest_create_account' is installed, it modifies a section of the view by removing a class. Subsequently, upon installing the 'website_sale_checkout_skip_payment' module, it expects to find this class, resulting in an error due to the previous deletion. By adjusting the priority of the view, this commit ensures that the necessary class is retained during positioning, resolving the conflict. [BOT] post-merge updates Translated using Weblate (Italian) Currently translated at 100.0% (5 of 5 strings) Translation: e-commerce-16.0/e-commerce-16.0-website_sale_suggest_create_account Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_suggest_create_account/it/
[BOT] post-merge updates
- steps must be a function
- no more require("web_tour.tour")
[BOT] post-merge updates
Added translation using Weblate (Spanish (Venezuela))
7ca578c to
facd219
Compare
|
@pilarvargas-tecnativa done. Can you review it? |
| if self.env["ir.module.module"]._get("payment_custom").state != "installed": | ||
| self.skipTest("Transfer provider is not installed") | ||
| transfer_provider = self.env.ref("payment.payment_provider_transfer") | ||
| transfer_provider.write( | ||
| { | ||
| "state": "enabled", | ||
| "is_published": True, | ||
| } | ||
| ) | ||
| transfer_provider._transfer_ensure_pending_msg_is_set() |
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.
| if self.env["ir.module.module"]._get("payment_custom").state != "installed": | |
| self.skipTest("Transfer provider is not installed") | |
| transfer_provider = self.env.ref("payment.payment_provider_transfer") | |
| transfer_provider.write( | |
| { | |
| "state": "enabled", | |
| "is_published": True, | |
| } | |
| ) | |
| transfer_provider._transfer_ensure_pending_msg_is_set() |
This should not be included in the test, as it creates an unnecessary dependency. Testing this functionality does not require reaching the payment process. Furthermore, it may mask errors in the test or functionality by skipping the test when the payment provider is not installed. The tour has some outdated steps, but it likely isn't failing due to this block in the test.
| steps: () => [ | ||
| // Shop Page | ||
| { | ||
| trigger: "a:contains('Customizable')", |
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.
| trigger: "a:contains('Customizable')", | |
| trigger: "a:contains('Customizable')", | |
| run: "click", |
This is not failing because of the above. In many steps the action is missing.
| // Cart page | ||
| { | ||
| trigger: | ||
| "a.btn-primary[href='/web/login?redirect=/shop/checkout?express=1']", |
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.
This step is looking for something that does not exist.
facd219 to
d6fcdc2
Compare
d6fcdc2 to
becc496
Compare
pilarvargas-tecnativa
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!
|
@Tecnativa TT54397 |
CarlosRoca13
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!
|
/ocabot migration website_sale_suggest_create_account |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at 3ddcb84. Thanks a lot for contributing to OCA. ❤️ |

No description provided.