Skip to content

Conversation

@carlos-lopez-tecnativa
Copy link
Contributor

TT54536
@Tecnativa @pedrobaeza @CarlosRoca13 @pilarvargas-tecnativa could you please review this?

SimoRubi and others added 23 commits February 7, 2025 06:48
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/
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.
@pedrobaeza
Copy link
Member

/ocabot migration website_sale_order_type

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 7, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 7, 2025
40 tasks
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.

LGTM 👍

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.

👍 Code review

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-1019-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 3ae3458 into OCA:18.0 Feb 11, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 18.0-mig-website_sale_order_type branch February 11, 2025 10:01
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.