diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-10-26 14:51:38 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-11-02 11:49:39 +0000 |
| commit | e0cc28dcee977c4aa0c6a7e4ff6c463ab12e55a2 (patch) | |
| tree | 413256e3bfcff5ded76e86866cbeb30fd50970b7 /addons/website/data/website_data.xml | |
| parent | 64a1a7b78782cb255a47d2e7d55d605c8175b6ce (diff) | |
[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'
Diffstat (limited to 'addons/website/data/website_data.xml')
| -rw-r--r-- | addons/website/data/website_data.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml index dc477e723f6..548c3428ff6 100644 --- a/addons/website/data/website_data.xml +++ b/addons/website/data/website_data.xml @@ -240,8 +240,17 @@ <field name="url">/</field> <field name="target">self</field> </record> + <record id="action_website_edit" model="ir.actions.act_url"> + <!-- + be aware, this record has been added just after the 14.0 + freeze and could be missing on first installed db. + --> + <field name="name">Website Edit Mode</field> + <field name="url">/?enable_editor=1</field> + <field name="target">self</field> + </record> <record id="base.open_menu" model="ir.actions.todo"> - <field name="action_id" ref="action_website"/> + <field name="action_id" ref="action_website_edit"/> <field name="state">open</field> </record> |
