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

[12.0][MIG] website_sale_order_type: Migration to 12.0 #454

Merged
merged 5 commits into from
Jan 5, 2021

Conversation

joao-p-marques
Copy link
Member

@joao-p-marques joao-p-marques mentioned this pull request Oct 26, 2020
19 tasks
@rafaelbn rafaelbn added this to the 12.0 milestone Oct 29, 2020
@victoralmau
Copy link
Member

Please, check Travis

SimoRubi and others added 4 commits January 5, 2021 10:44
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.
@joao-p-marques joao-p-marques force-pushed the 12.0-mig-website_sale_order_type branch from 24d4a16 to a217009 Compare January 5, 2021 10:46
@joao-p-marques
Copy link
Member Author

Travis is green now @victoralmau Thank you 👍

<template id="assets_frontend" inherit_id="website_sale.assets_frontend">
<xpath expr=".">
<script type="text/javascript"
src="/website_sale_order_type/static/src/js/website_sale_order_type_tour.js"/>
Copy link
Member

Choose a reason for hiding this comment

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

Why is this regular data instead of demo one? Put also a note for being moved to assets_tests + data on v13.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Changes made! Was that what you meant?

Copy link
Member

Choose a reason for hiding this comment

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

It's still loaded as data instead of demo. In manifest, put the XML in demo key and move the file to demo folder.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I just need to move it to the demo folder

Copy link
Member Author

Choose a reason for hiding this comment

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

Change done @pedrobaeza

@joao-p-marques joao-p-marques force-pushed the 12.0-mig-website_sale_order_type branch from a217009 to 8fde58f Compare January 5, 2021 12:27
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
@joao-p-marques joao-p-marques force-pushed the 12.0-mig-website_sale_order_type branch from 8fde58f to ab6b97b Compare January 5, 2021 13:51
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit 0a85f6b into OCA:12.0 Jan 5, 2021
@OCA-git-bot
Copy link
Contributor

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

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.

None yet

8 participants