summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/xml
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-07-20 09:44:59 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-20 17:59:48 +0200
commit0a8ec457693351fa32183ffc20bbf6590e71144a (patch)
tree1f977b4e32debed340c2b7b3730ea810379a13c9 /addons/web_tour/static/src/xml
parentd1cd293ecefde56bf649aa69b5da808755f6a4b8 (diff)
[IMP] web_tour: add button to consume all tours in debug_manager
Changes the api of the consume method on the web_tour.tour model so that it now takes in argument an array of tour names instead of a single tour name.
Diffstat (limited to 'addons/web_tour/static/src/xml')
-rw-r--r--addons/web_tour/static/src/xml/debug_manager.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web_tour/static/src/xml/debug_manager.xml b/addons/web_tour/static/src/xml/debug_manager.xml
new file mode 100644
index 00000000000..d11aa2d0763
--- /dev/null
+++ b/addons/web_tour/static/src/xml/debug_manager.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+
+<t t-extend="WebClient.DebugManager.Global">
+ <t t-jquery="li > a[data-action='start_tour']" t-operation="after">
+ <li t-if="manager._is_admin and manager.consume_tours_enabled">
+ <a href="#" data-action="consume_tours">Consume Tours</a>
+ </li>
+ </t>
+</t>
+
+</templates>