-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] resource_booking: Partial change from tour test to js
- Loading branch information
1 parent
2c1bc3d
commit 01f2144
Showing
4 changed files
with
52 additions
and
18 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
odoo.define("resource_booking.tour", function (require) { | ||
"use strict"; | ||
|
||
var tour = require("web_tour.tour"); | ||
|
||
tour.register( | ||
"resource_booking_ptl_tour", | ||
{ | ||
test: true, | ||
url: "/my", | ||
}, | ||
[ | ||
{ | ||
content: "Go /my/bookings url", | ||
trigger: 'a[href*="/my/bookings"]', | ||
}, | ||
{ | ||
content: "There are currently no bookings for your account.", | ||
trigger: "p", | ||
}, | ||
] | ||
); | ||
tour.register( | ||
"resource_booking_ptl2_tour", | ||
{ | ||
test: true, | ||
url: "/my", | ||
}, | ||
[ | ||
{ | ||
content: "Go /my/bookings url", | ||
trigger: 'a[href*="/my/bookings"]', | ||
}, | ||
{ | ||
content: "Go to Booking item", | ||
trigger: ".tr_resource_booking_link:eq(0)", | ||
}, | ||
{ | ||
content: "Schedule button", | ||
trigger: ".badge:contains('Pending')", | ||
}, | ||
] | ||
); | ||
}); |
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