Skip to content
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_order_type #971

Open
wants to merge 29 commits into
base: 17.0
Choose a base branch
from

Conversation

david-s73
Copy link

Superseed #922

SimoRubi and others added 28 commits September 17, 2024 10:49
Without this patch, it's easy that the tour fails randomly due to a timeout when generating the sales order report. These assets can take a long time, increasing when more addons are installed.

In an integrated database, this patch makes the test go from this log:

    2020-11-06 10:34:53,941 34 INFO devel werkzeug: 127.0.0.1 - - [06/Nov/2020 10:34:53] "POST /payment/transfer/feedback HTTP/1.1" 302 - 730 4.368 11.800

To this one:

    2020-11-06 10:32:55,517 34 INFO devel werkzeug: 127.0.0.1 - - [06/Nov/2020 10:32:55] "POST /payment/transfer/feedback HTTP/1.1" 302 - 479 2.906 5.771

That's about 50% the time.

In the same patch, I remove the `self.env` patch that was only needed for Odoo v11 and lower.
With the old tour, timeout problems started to occur, even with 7830084

This partially reverts that, and instead uses a simpler tour to test the creation of the SO.

TT26399
If we don't trigger the onchanges, we won't get some of the default
values that the order type has defined

TT30235
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_order_type
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_order_type/
Currently translated at 100.0% (1 of 1 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_order_type
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_order_type/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-16.0/e-commerce-16.0-website_sale_order_type
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_order_type/
Currently translated at 100.0% (1 of 1 strings)

Translation: e-commerce-16.0/e-commerce-16.0-website_sale_order_type
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_order_type/es/
Currently translated at 100.0% (1 of 1 strings)

Translation: e-commerce-16.0/e-commerce-16.0-website_sale_order_type
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_order_type/it/
When using the demo product "Customizable Desk" in
the standard behaviour there is an intermediate step
in which the variant of the product to be added to
the cart is chosen. This step may not be there if
there are no variants really because some module has
modified this and to avoid errors in the tests it is
better to create a product in which we are sure that
there are no variants and the step of selecting the
variant before adding to the cart does not exist.
@david-s73 david-s73 changed the title 17.0 mig website sale order type v2 [17.0][MIG] website_sale_order_type Sep 17, 2024
@david-s73 david-s73 force-pushed the 17.0-mig-website_sale_order_type_v2 branch from 75ea98b to e0b97c7 Compare September 17, 2024 10:06
@david-s73 david-s73 force-pushed the 17.0-mig-website_sale_order_type_v2 branch 8 times, most recently from 435706c to fd714c4 Compare September 17, 2024 12:00
@david-s73
Copy link
Author

@OCA/e-commerce-maintainers how to proceed with the test errors as we think it may be a problem with the version of Chrome used for the tours?

@david-s73
Copy link
Author

@pedrobaeza Do you know how to proceed with the error I mentioned in my previous comment?

@pedrobaeza
Copy link
Member

Please rebase and forced push, as this was fixed recently fixing the Chrome version in tests.

@david-s73 david-s73 force-pushed the 17.0-mig-website_sale_order_type_v2 branch from fd714c4 to 099b8d7 Compare October 17, 2024 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.