summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-09-02 11:11:54 +0100
committerqsm-odoo <qsm@odoo.com>2016-09-02 12:39:06 +0100
commitd41ed40c70faa9b30144c070a06fe2f07f15084b (patch)
treec177d0a8a023ca0d580bb273957e7cdb6c88a22b /addons/web
parentf7cfef83b48f15d3c34f1506ccc142358e51f099 (diff)
[IMP] web, website: adapt tour launching to new system
* The debug manager contains a feature to launch tours, adapt it to new web_tour.tour system * The website help menu allowed to relaunch tutorial tour in debug mode. This feature is not adapted to new tour system and was useless in the first place (debug mode in frontend is barely used anyway). -> remove the website help menu and the feature
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/widgets/debug_manager.js16
-rw-r--r--addons/web/static/src/xml/base.xml21
2 files changed, 1 insertions, 36 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js
index 4ebb1e775b2..f191eb739ea 100644
--- a/addons/web/static/src/js/widgets/debug_manager.js
+++ b/addons/web/static/src/js/widgets/debug_manager.js
@@ -10,7 +10,6 @@ var framework = require('web.framework');
var Model = require('web.Model');
var session = require('web.session');
var SystrayMenu = require('web.SystrayMenu');
-var Tour = require('web.Tour');
var utils = require('web.utils');
var ViewManager = require('web.ViewManager');
var WebClient = require('web.WebClient');
@@ -159,19 +158,6 @@ var DebugManager = Widget.extend({
}));
return $.when();
},
- start_tour: function() {
- var dialog = new Dialog(this, {
- title: 'Tours',
- $content: QWeb.render('WebClient.DebugManager.ToursDialog', {
- tours: Tour.tours
- }),
- }).open();
-
- dialog.$('.o_start_tour').on('click', function(e) {
- e.preventDefault();
- odoo.__DEBUG__.services['web.Tour'].run($(e.target).data('id'));
- });
- },
select_view: function () {
var self = this;
new common.SelectCreateDialog(this, {
@@ -341,7 +327,7 @@ DebugManager.include({
if (!this._active_view.controller.get_selected_ids().length) {
console.warn(_t("No metadata available"));
return
- }
+ }
ds.call('get_metadata', [this._active_view.controller.get_selected_ids()]).done(function(result) {
new Dialog(this, {
title: _.str.sprintf(_t("Metadata (%s)"), ds.model),
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 56b69d91225..ad54ed6a1f3 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -113,7 +113,6 @@
<li class="divider"/>
<li><a href="#" data-action="perform_js_tests">Run JS Tests</a></li>
<li><a href="#" data-action="select_view">Open View</a></li>
- <li><a href="#" data-action="start_tour">Start tour</a></li>
<t t-if="manager._events">
<li class="divider"/>
<li><a href="#" data-action="show_timelines">Toggle Timelines</a></li>
@@ -122,26 +121,6 @@
<li class="divider o_debug_leave_section"/>
<li><a href="#" data-action="leave_debug_mode">Leave the Developer Tools</a></li>
</t>
-
-<t t-name="WebClient.DebugManager.ToursDialog">
- <div>
- <table class="table table-condensed table-striped table-responsive">
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Path</th>
- <th/>
- </tr>
-
- <tr t-foreach="tours" t-as="tour">
- <td><t t-esc="tours[tour].id"/></td>
- <td><t t-esc="tours[tour].name"/></td>
- <td><t t-esc="tours[tour].path"/></td>
- <td><button type="button" class="btn btn-sm btn-primary fa fa-play o_start_tour" t-att-data-id="tours[tour].id"/></td>
- </tr>
- </table>
- </div>
-</t>
<t t-name="WebClient.DebugManager.Action">
<t t-if="action">
<li class="divider"/>