From e0cc28dcee977c4aa0c6a7e4ff6c463ab12e55a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Mon, 26 Oct 2020 14:51:38 +0000 Subject: [FIX] web_editor, website, *: improve post install theme and start tour Before this commit, once you install website_* module, the ir.actions.todo from the installed module was overidded by the 'choose a theme' action. Now, when we consume this ir_act_todo, we re-open the open_menu that contains most of the time the expected next action from new module installed. Since we can also install module from the '+ new' button, in frontend, we considere that it first step of tour is to click on it, it is already done and we skip it. Install website_event Before: -> not redirected to /event (the ir.action.todo) -> no tour, if you don't click manually on '+ new' After: -> you are redirected to /event -> you can launch tour from '+ new' if you are already on the new panel, start direclty to the second step 'create event' --- addons/website_event/static/src/js/tours/website_event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/website_event/static/src') diff --git a/addons/website_event/static/src/js/tours/website_event.js b/addons/website_event/static/src/js/tours/website_event.js index 3f704012527..0fc530bef46 100644 --- a/addons/website_event/static/src/js/tours/website_event.js +++ b/addons/website_event/static/src/js/tours/website_event.js @@ -9,8 +9,8 @@ odoo.define("website_event.tour", function (require) { tour.register("event", { url: "/", }, [{ + content: _t("Click here to add new content on your website."), trigger: '#new-content-menu > a', - auto: true, position: 'bottom', }, { trigger: "a[data-action=new_event]", @@ -19,7 +19,7 @@ odoo.define("website_event.tour", function (require) { }, { trigger: '.modal-dialog #editor_new_event input[type=text]', content: _t("Create a name for your new event and click \"Continue\". e.g: Technical Training"), - position: "right", + position: "left", }, { trigger: '.modal-footer button.btn-primary.btn-continue', extra_trigger: '#editor_new_event input[type=text][value!=""]', -- cgit v1.2.3