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

[15.0][MIG] website_sale_order_type: Migration to version 15.0 #706

Merged
merged 14 commits into from
Dec 16, 2022

Conversation

stefan-tecnativa
Copy link

TT37013

@chienandalu @CarlosRoca13 please review!

SimoRubi and others added 13 commits December 15, 2022 12:37
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
@stefan-tecnativa stefan-tecnativa force-pushed the 15.0-mig-website_sale_order_type branch from ccd0593 to 4d86f09 Compare December 15, 2022 11:39
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.

Just a minor comment

website_sale_order_type/readme/CONTRIBUTORS.rst Outdated Show resolved Hide resolved
@stefan-tecnativa stefan-tecnativa force-pushed the 15.0-mig-website_sale_order_type branch from 4d86f09 to d48bfcf Compare December 16, 2022 08:10
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Thanks @stefan-tecnativa ! 👍

@pilarvargas-tecnativa give your final approval, please 😉

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.

Approved!

@pedrobaeza
Copy link
Member

/ocabot merge nobump
/ocabot migration website_sale_order_type

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Dec 16, 2022
@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-706-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot mentioned this pull request Dec 16, 2022
41 tasks
@OCA-git-bot OCA-git-bot merged commit 8d5a307 into OCA:15.0 Dec 16, 2022
@OCA-git-bot
Copy link
Contributor

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

pilarvargas-tecnativa pushed a commit to Tecnativa/e-commerce that referenced this pull request Jan 24, 2023
Signed-off-by pedrobaeza
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.

10 participants