Skip to content

Conversation

@cem-adhoc
Copy link
Contributor

No description provided.

@pilarvargas-tecnativa
Copy link
Contributor

Please reduce administrative commits

@@ -0,0 +1,47 @@
/** @odoo-module */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** @odoo-module */

Not necessary in v18

pedrobaeza and others added 20 commits May 23, 2025 17:04
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
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
- 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/
- steps must be a function
- no more require("web_tour.tour")

[BOT] post-merge updates

Added translation using Weblate (Spanish (Venezuela))
@cem-adhoc cem-adhoc force-pushed the 18.0-mig-website_sale_suggest_create_account branch 2 times, most recently from 7ca578c to facd219 Compare May 23, 2025 17:07
@cem-adhoc
Copy link
Contributor Author

@pilarvargas-tecnativa done. Can you review it?

Comment on lines 26 to 35
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()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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')",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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']",
Copy link
Contributor

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.

@cem-adhoc cem-adhoc force-pushed the 18.0-mig-website_sale_suggest_create_account branch from facd219 to d6fcdc2 Compare May 27, 2025 23:51
@cem-adhoc cem-adhoc force-pushed the 18.0-mig-website_sale_suggest_create_account branch from d6fcdc2 to becc496 Compare May 27, 2025 23:54
Copy link
Contributor

@pilarvargas-tecnativa pilarvargas-tecnativa left a comment

Choose a reason for hiding this comment

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

thanks!

@pilarvargas-tecnativa
Copy link
Contributor

@Tecnativa TT54397
@CarlosRoca13 please take a look

Copy link
Contributor

@CarlosRoca13 CarlosRoca13 left a comment

Choose a reason for hiding this comment

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

Thanks!

@pedrobaeza
Copy link
Member

/ocabot migration website_sale_suggest_create_account
/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone May 28, 2025
@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1051-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request May 28, 2025
40 tasks
@OCA-git-bot OCA-git-bot merged commit 676b5d4 into OCA:18.0 May 28, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 3ddcb84. Thanks a lot for contributing to OCA. ❤️

@cvinh
Copy link

cvinh commented Oct 5, 2025

Hello

AFAICS Suggesting to create an account is already in v18 Core
Capture d’écran du 2025-10-05 07-21-11

This module does it differently but I think it should be mentionned in the README

Best regards

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.