-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
292 additions
and
389 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
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
.desc_rst > { | ||
.document > .reference{ | ||
display: none; | ||
} | ||
} | ||
|
||
.font_12 { | ||
font-size: 12px; | ||
} | ||
|
||
.dropdown-scrollable { | ||
max-height: 15rem; | ||
overflow-y: auto; | ||
} |
This file was deleted.
Oops, something went wrong.
143 changes: 69 additions & 74 deletions
143
website_apps_store/static/src/js/website_apps_store_tour.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,106 +1,101 @@ | ||
odoo.define('website_apps_store.tour_custom', function (require) { | ||
'use strict'; | ||
'use strict'; | ||
|
||
var Tour = require("web_tour.tour"); | ||
var base = require("web_editor.base"); | ||
var Tour = require("web_tour.tour"); | ||
var base = require("web_editor.base"); | ||
|
||
Tour.register('download_zip', { | ||
name: "Download Zip File", | ||
url: '/shop/page/2', | ||
test: true, | ||
wait_for: base.ready() | ||
},[ | ||
{ | ||
content: "Shop", | ||
trigger: ".oe_product_cart a:contains('Odoo Module 1')" | ||
wait_for: base.ready(), | ||
}, [ | ||
{ | ||
content: "Shop", | ||
trigger: ".oe_product_cart a:contains('Odoo Module 1')", | ||
}, | ||
{ | ||
content: "Select Version", | ||
trigger: "input[type=radio]", | ||
run: function () { | ||
$('input[type=radio]:last').attr("checked", "checked"); | ||
}, | ||
{ | ||
content: "Select Version", | ||
trigger: "input[type=radio]", | ||
run: function(){ | ||
$('input[type=radio]:last').attr("checked", "checked"); | ||
} | ||
}, | ||
{ | ||
content: "Download", | ||
trigger: "button:contains(Download)" | ||
} | ||
] | ||
); | ||
}, | ||
{ | ||
content: "Download", | ||
trigger: "button:contains(Download)", | ||
}, | ||
]); | ||
|
||
Tour.register('select_version_search', { | ||
name: "Select Version", | ||
url: '/shop', | ||
test: true, | ||
wait_for: base.ready() | ||
},[ | ||
{ | ||
content: "Shop", | ||
trigger: ".dropdown_version_by a.dropdown-toggle" | ||
}, | ||
{ | ||
content: "Select Version", | ||
trigger: ".dropdown_version_by .dropdown-menu a:contains('10.0')", | ||
}, | ||
] | ||
); | ||
wait_for: base.ready(), | ||
}, [ | ||
{ | ||
content: "Shop", | ||
trigger: ".dropdown_version_by a.dropdown-toggle", | ||
}, | ||
{ | ||
content: "Select Version", | ||
trigger: ".dropdown_version_by .dropdown-menu a:contains('10.0')", | ||
}, | ||
]); | ||
|
||
Tour.register('select_category_search', { | ||
name: "Select Category", | ||
url: '/shop', | ||
test: true, | ||
wait_for: base.ready() | ||
},[ | ||
{ | ||
content: "Shop", | ||
trigger: ".dropdown_category_by a.dropdown-toggle" | ||
}, | ||
{ | ||
content: "Select Category", | ||
trigger: ".dropdown_category_by .dropdown-menu a:contains('Category1')", | ||
}, | ||
] | ||
); | ||
wait_for: base.ready(), | ||
}, [ | ||
{ | ||
content: "Shop", | ||
trigger: ".dropdown_category_by a.dropdown-toggle", | ||
}, | ||
{ | ||
content: "Select Category", | ||
trigger: | ||
".dropdown_category_by .dropdown-menu a:contains('Category1')", | ||
}, | ||
]); | ||
|
||
Tour.register('module_search', { | ||
name: "Select Product(Module)", | ||
url: '/shop', | ||
test: true, | ||
wait_for: base.ready() | ||
},[ | ||
{ | ||
content: "Shop", | ||
trigger: ".search-query", | ||
run: function(){ | ||
$('.search-query').attr('value', 'Test'); | ||
} | ||
}, | ||
{ | ||
content: "Search Button", | ||
trigger: ".oe_search_button", | ||
wait_for: base.ready(), | ||
}, [ | ||
{ | ||
content: "Shop", | ||
trigger: ".search-query", | ||
run: function () { | ||
$('.search-query').attr('value', 'Test'); | ||
}, | ||
] | ||
); | ||
}, | ||
{ | ||
content: "Search Button", | ||
trigger: ".oe_search_button", | ||
}, | ||
]); | ||
|
||
Tour.register('technical_name_search', { | ||
name: "Select Product(Module) by Technical Name", | ||
url: '/shop', | ||
test: true, | ||
wait_for: base.ready() | ||
},[ | ||
{ | ||
content: "Shop", | ||
trigger: ".search-query", | ||
run: function(){ | ||
$('.search-query').attr('value', 'odoo_module1'); | ||
} | ||
wait_for: base.ready(), | ||
}, [ | ||
{ | ||
content: "Shop", | ||
trigger: ".search-query", | ||
run: function () { | ||
$('.search-query').attr('value', 'odoo_module1'); | ||
}, | ||
{ | ||
content: "Search Button", | ||
trigger: ".oe_search_button", | ||
}, | ||
] | ||
); | ||
|
||
}, | ||
{ | ||
content: "Search Button", | ||
trigger: ".oe_search_button", | ||
}, | ||
]); | ||
|
||
}); |
Oops, something went wrong.