[FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install...
This commit is contained in:
parent
90b88e33cb
commit
86a6619dc8
|
@ -19,6 +19,7 @@
|
||||||
<record id="action_open_forum" model="ir.actions.act_url">
|
<record id="action_open_forum" model="ir.actions.act_url">
|
||||||
<field name="name">Forum</field>
|
<field name="name">Forum</field>
|
||||||
<field name="target">self</field>
|
<field name="target">self</field>
|
||||||
|
<!-- TODO in master : remove the tutorial or create one tutorial forum -->
|
||||||
<field name="url" eval="'/forum/'+str(ref('website_forum.forum_help'))+'/#tutorial.forum=true'"/>
|
<field name="url" eval="'/forum/'+str(ref('website_forum.forum_help'))+'/#tutorial.forum=true'"/>
|
||||||
</record>
|
</record>
|
||||||
<record id="base.open_menu" model="ir.actions.todo">
|
<record id="base.open_menu" model="ir.actions.todo">
|
||||||
|
|
|
@ -4,28 +4,10 @@
|
||||||
var website = openerp.website;
|
var website = openerp.website;
|
||||||
var _t = openerp._t;
|
var _t = openerp._t;
|
||||||
|
|
||||||
// website.EditorBar.include({
|
openerp.Tour.register({
|
||||||
// start: function () {
|
id: 'forum',
|
||||||
// this.registerTour(new website.Tour.Forum(this));
|
name: '',
|
||||||
// return this._super();
|
steps : [{}],
|
||||||
// },
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
// website.Tour.Forum = website.Tour.extend({
|
|
||||||
// id: 'question',
|
|
||||||
// name: "Create a question",
|
|
||||||
// testPath: '/forum(/[0-9]+/register)?',
|
|
||||||
// init: function (editor) {
|
|
||||||
// var self = this;
|
|
||||||
// self.steps = [
|
|
||||||
// {
|
|
||||||
// title: _t("Create a question"),
|
|
||||||
// content: _t("Let's go through the first steps to create a new question."),
|
|
||||||
// popover: { next: _("Start Tutorial"), end: _("Skip It") },
|
|
||||||
// },
|
|
||||||
// ];
|
|
||||||
// return this._super();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
|
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in New Issue