-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] website_event_sale_b2x_alt_price: Migration to version 17.0
TT51967
- Loading branch information
1 parent
782f575
commit 10aeb09
Showing
9 changed files
with
98 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ Contributors | |
- Jairo Llopis | ||
- Carlos Roca | ||
- David Vidal | ||
- Pilar Vargas | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
- Jairo Llopis | ||
- Carlos Roca | ||
- David Vidal | ||
- Pilar Vargas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 29 additions & 31 deletions
60
website_event_sale_b2x_alt_price/static/src/js/b2b.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
/** @odoo-module */ | ||
|
||
/* Copyright 2022 Carlos Roca - Tecnativa | ||
Copyright 2021 Tecnativa - David Vidal | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
*/ | ||
import tour from "web_tour.tour"; | ||
|
||
export const steps = [ | ||
{ | ||
trigger: "a:has(span:contains('Test Event One Ticket'))", | ||
}, | ||
{ | ||
trigger: "a[href='/event']", | ||
extra_trigger: | ||
".o_wevent_registration_single:has(span[data-oe-field='price_reduce']:contains('100.0')):has(span.js_alt_price:contains('122.00')):has(h6:contains('Test Ticket'))", | ||
}, | ||
{ | ||
trigger: "a:has(span:contains('Test Event More Tickets'))", | ||
}, | ||
{ | ||
trigger: | ||
"#o_wevent_tickets_collapse > div:has(span[data-oe-field='price_reduce']:contains('100.00')):has(span.js_alt_price:contains('122.00')):has(h5:contains('Test Ticket 1'))", | ||
}, | ||
{ | ||
trigger: | ||
"#o_wevent_tickets_collapse > div:has(span[data-oe-field='price_reduce']:contains('100.00')):not(:has(span.js_alt_price)):has(h5:contains('Test Ticket 2'))", | ||
}, | ||
]; | ||
import {registry} from "@web/core/registry"; | ||
import wsTourUtils from "@website_sale/js/tours/tour_utils"; | ||
|
||
tour.register( | ||
"website_event_sale_b2x_alt_price_b2b", | ||
{ | ||
test: true, | ||
url: "/event", | ||
}, | ||
steps | ||
); | ||
registry.category("web_tour.tours").add("website_event_sale_b2x_alt_price_b2b", { | ||
test: true, | ||
url: "/event", | ||
steps: () => [ | ||
{ | ||
content: "Open the Test Event One Ticket event page", | ||
trigger: '.o_wevent_events_list a:contains("Test Event One Ticket")', | ||
}, | ||
{ | ||
content: "Open the register modal", | ||
trigger: 'button:contains("Register")', | ||
}, | ||
{ | ||
extra_trigger: | ||
".o_wevent_registration_single:has(span[data-oe-field='price_reduce']:contains('100.00')):has(span.js_alt_price:contains('122.00'))", | ||
trigger: '.btn-primary.o_wait_lazy_js:contains("Register")', | ||
}, | ||
{ | ||
content: "Validate attendees details", | ||
extra_trigger: | ||
"input[name*='1-name'], input[name*='2-name'], input[name*='3-name']", | ||
trigger: 'button[type=submit]:contains("Go to Payment")', | ||
}, | ||
wsTourUtils.goToCart({quantity: 1}), | ||
], | ||
}); |
60 changes: 29 additions & 31 deletions
60
website_event_sale_b2x_alt_price/static/src/js/b2c.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
/** @odoo-module */ | ||
|
||
/* Copyright 2022 Carlos Roca - Tecnativa | ||
Copyright 2021 Tecnativa - David Vidal | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
*/ | ||
import tour from "web_tour.tour"; | ||
|
||
export const steps = [ | ||
{ | ||
trigger: "a:has(span:contains('Test Event One Ticket'))", | ||
}, | ||
{ | ||
trigger: "a[href='/event']", | ||
extra_trigger: | ||
".o_wevent_registration_single:has(span[data-oe-field='price_reduce_taxinc']:contains('122.0')):has(span.js_alt_price:contains('100.00')):has(h6:contains('Test Ticket'))", | ||
}, | ||
{ | ||
trigger: "a:has(span:contains('Test Event More Tickets'))", | ||
}, | ||
{ | ||
trigger: | ||
"#o_wevent_tickets_collapse > div:has(span[data-oe-field='price_reduce_taxinc']:contains('122.00')):has(span.js_alt_price:contains('100.00')):has(h5:contains('Test Ticket 1'))", | ||
}, | ||
{ | ||
trigger: | ||
"#o_wevent_tickets_collapse > div:has(span[data-oe-field='price_reduce_taxinc']:contains('100.00')):not(:has(span.js_alt_price)):has(h5:contains('Test Ticket 2'))", | ||
}, | ||
]; | ||
import {registry} from "@web/core/registry"; | ||
import wsTourUtils from "@website_sale/js/tours/tour_utils"; | ||
|
||
tour.register( | ||
"website_event_sale_b2x_alt_price_b2c", | ||
{ | ||
test: true, | ||
url: "/event", | ||
}, | ||
steps | ||
); | ||
registry.category("web_tour.tours").add("website_event_sale_b2x_alt_price_b2c", { | ||
test: true, | ||
url: "/event", | ||
steps: () => [ | ||
{ | ||
content: "Open the Test Event One Ticket event page", | ||
trigger: '.o_wevent_events_list a:contains("Test Event One Ticket")', | ||
}, | ||
{ | ||
content: "Open the register modal", | ||
trigger: 'button:contains("Register")', | ||
}, | ||
{ | ||
extra_trigger: | ||
".o_wevent_registration_single:has(span[data-oe-field='price_reduce_taxinc']:contains('122.00')):has(span.js_alt_price:contains('100.00'))", | ||
trigger: '.btn-primary.o_wait_lazy_js:contains("Register")', | ||
}, | ||
{ | ||
content: "Validate attendees details", | ||
extra_trigger: | ||
"input[name*='1-name'], input[name*='2-name'], input[name*='3-name']", | ||
trigger: 'button[type=submit]:contains("Go to Payment")', | ||
}, | ||
wsTourUtils.goToCart({quantity: 1}), | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters