-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
[13.0][MIG] website_sale_tax_toggle: Migration #497
[13.0][MIG] website_sale_tax_toggle: Migration #497
Conversation
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: e-commerce-12.0/e-commerce-12.0-website_sale_tax_toggle Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_tax_toggle/
This tour was not effective because: - Steps did not have proper wait conditions. - That made them run fast without actually testing the desired effect. - That left many remaining requests that could made tests to fail randomly, as you can see in OCA#420 (comment). Now it's shorter but more effective: - It skips going to `/shop` at the start because it starts already there. - It moves tour code to demo data. - It adds proper checks to each trigger, to make sure it doesn't run before checking the result is OK. @Tecnativa TT24410
…2x_alt_price @Tecnativa TT24410
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-12.0/e-commerce-12.0-website_sale_tax_toggle Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_tax_toggle/fr/
Currently translated at 100.0% (2 of 2 strings) Translation: e-commerce-12.0/e-commerce-12.0-website_sale_tax_toggle Translate-URL: https://translation.odoo-community.org/projects/e-commerce-12-0/e-commerce-12-0-website_sale_tax_toggle/ca/
b1027df
to
0bd1c13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All working fine!! Just a non-blocking comment for tour loading
<!-- Copyright 2020 Tecnativa - Jairo Llopis | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<data> | ||
<template id="assets_frontend_demo" inherit_id="website.assets_frontend"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<template id="assets_frontend_demo" inherit_id="website.assets_frontend"> | |
<template id="assets_tests_demo" inherit_id="website.assets_tests"> |
On v13 exists the view assets_test. This assets are loaded just when testing, so you can place the file on templates and inherit from this view on data. Not need to place the assets on demo anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't saw in last review the js variable definition 😅
odoo.define("website_sale_tax_toggle.tax_toggle_button", function(require) { | ||
"use strict"; | ||
|
||
var sAnimation = require("website.content.snippets.animation"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var sAnimation = require("website.content.snippets.animation"); | |
const sAnimation = require("website.content.snippets.animation"); |
}, | ||
_onPublishBtnClick: function(ev) { | ||
ev.preventDefault(); | ||
var $data = $(ev.currentTarget).parents(".js_tax_toggle_management:first"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var $data = $(ev.currentTarget).parents(".js_tax_toggle_management:first"); | |
const $data = $(ev.currentTarget).parents(".js_tax_toggle_management:first"); |
var tour = require("web_tour.tour"); | ||
var base = require("web_editor.base"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var tour = require("web_tour.tour"); | |
var base = require("web_editor.base"); | |
const tour = require("web_tour.tour"); | |
const base = require("web_editor.base"); |
// Notice that it's important targeting the price as `span .oe_currency_value` | ||
// or `.oe_price .oe_currency_value` to make sure this test is compatible | ||
// with website_sale_b2x_alt_price module in this same repo. | ||
var steps = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var steps = [ | |
const steps = [ |
This PR has the |
0bd1c13
to
2d358d5
Compare
@CarlosRoca13 Changes done!!! |
<!-- Copyright 2020 Tecnativa - Jairo Llopis | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<data> | ||
<template id="assets_tests_demo" inherit_id="website.assets_tests_demo"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<template id="assets_tests_demo" inherit_id="website.assets_tests_demo"> | |
<template id="assets_tests_demo" inherit_id="website.assets_tests"> |
2d358d5
to
ec83f17
Compare
@CarlosRoca13 Sorry!! Changes done!! |
This PR has the |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 4dce6f3. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT27484
@CarlosRoca13 @chienandalu Can you review?