[FIX] website(_*): stop launching old tours on installation
On website/theme installation and other website_* module installation, an action was triggered to launch tours. These tours are now used only for tests and should not be used as onboarding anymore. Note: in master these tours will be removed to use the new test system.
This commit is contained in:
@@ -76,11 +76,6 @@
|
||||
<field name="url">/</field>
|
||||
<field name="target">self</field>
|
||||
</record>
|
||||
<record id="action_website_tutorial" model="ir.actions.act_url">
|
||||
<field name="name">Website With Tutorial</field>
|
||||
<field name="url">/#tutorial.banner=true</field>
|
||||
<field name="target">self</field>
|
||||
</record>
|
||||
<record id="action_website_homepage" model="ir.actions.act_url">
|
||||
<field name="name">Website Homepage</field>
|
||||
<field name="url">/page/homepage</field>
|
||||
@@ -95,7 +90,7 @@
|
||||
</record>
|
||||
|
||||
<record id="base.open_menu" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_website_tutorial"/>
|
||||
<field name="action_id" ref="action_website"/>
|
||||
<field name="state">open</field>
|
||||
</record>
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
<record id="action_open_website" model="ir.actions.act_url">
|
||||
<field name="name">Website Blogs</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url" eval="'/blog/'+str(ref('website_blog.blog_blog_1'))+'/#tutorial.blog=true'"/>
|
||||
<field name="url" eval="'/blog/'+str(ref('website_blog.blog_blog_1'))"/>
|
||||
</record>
|
||||
<record id="base.open_menu" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_open_website"/>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<record id="action_open_website" model="ir.actions.act_url">
|
||||
<field name="name">Website Home</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/event#tutorial.event=true</field>
|
||||
<field name="url">/event</field>
|
||||
</record>
|
||||
<record id="base.open_menu" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_open_website"/>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<record id="action_open_website" model="ir.actions.act_url">
|
||||
<field name="name">Website Shop</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/shop#tutorial.shop=true</field>
|
||||
<field name="url">/shop</field>
|
||||
</record>
|
||||
<record id="base.open_menu" model="ir.actions.todo">
|
||||
<field name="action_id" ref="action_open_website"/>
|
||||
@@ -47,7 +47,7 @@
|
||||
<record id="sale.model_sale_order" model="ir.model">
|
||||
<field name="website_form_access" eval="True"/>
|
||||
<field name="website_form_label">Sale Order</field>
|
||||
</record>
|
||||
</record>
|
||||
<function model="ir.model.fields" name="formbuilder_whitelist">
|
||||
<value>sale.order</value>
|
||||
<value eval="[
|
||||
@@ -62,7 +62,7 @@
|
||||
<function model="ir.model.fields" name="formbuilder_whitelist">
|
||||
<value>res.partner</value>
|
||||
<value eval="[
|
||||
'name', 'phone', 'email',
|
||||
'name', 'phone', 'email',
|
||||
'city', 'zip', 'street', 'state_id', 'country_id',
|
||||
'vat', 'company_name'
|
||||
]"/>
|
||||
|
||||
@@ -46,6 +46,6 @@ class IrModuleModule(models.Model):
|
||||
|
||||
next_action = self.button_immediate_install() # Then install the new chosen one
|
||||
if next_action.get('tag') == 'reload' and not next_action.get('params', {}).get('menu_id'):
|
||||
next_action = self.env.ref('website.action_website_tutorial').read()[0]
|
||||
next_action = self.env.ref('website.action_website').read()[0]
|
||||
|
||||
return next_action
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div t-if="!has_screenshot" t-attf-style="background-image: url(#{record.icon.value});"/>
|
||||
<div class="o_button_area">
|
||||
<button type="object" name="button_choose_theme" states="uninstalled" class="btn btn-primary btn-sm">Install</button>
|
||||
<button type="action" name="website.action_website_tutorial" states="installed" class="btn btn-primary btn-sm">Install</button>
|
||||
<button type="action" name="website.action_website" states="installed" class="btn btn-primary btn-sm">Install</button>
|
||||
<a t-if="record.url.value" class="btn btn-sm btn-primary" t-att-href="record.url.value" target="_blank">Live Preview</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,7 +47,7 @@
|
||||
</record>
|
||||
|
||||
<!-- Actions to list themes with custom kanban (launched on module installation) -->
|
||||
<record id="theme_install_kanban_action" model="ir.actions.act_window">
|
||||
<record id="theme_install_kanban_action" model="ir.actions.act_window">
|
||||
<field name="name">Choose Your Theme</field>
|
||||
<field name="res_model">ir.module.module</field>
|
||||
<field name="view_mode">kanban</field>
|
||||
|
||||
Reference in New Issue
Block a user