[REM] website, *: remove the now useless backend_dashboard tour
* website_sale That tour keeps failing. A fix attempt was made with [1] but wasn't enough. The tour was actually useless as since [2] google analytics dashboard was not part of the website dashboard anymore (due to google not allowing GA4 dashboard to be embed). The tour, which was initially made to ensure that google analytics was correctly shown even if not yet connected to was then not useful anymore. The opportunity is also taken to rename the misleading ID of related records still mentioning Google. [1]: https://github.com/odoo/odoo/commit/1a191357e3ac0c4542b2fc7c3a2aee18dc54699d [2]: https://github.com/odoo/odoo/commit/985e49bdb5e22fa197ba267aa41d7a8ba7e50550 runbot-4498 runbot-4499 runbot-4466 closes odoo/odoo#98090 Related: odoo/upgrade#3774 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
odoo.define("website.tour.backend_dashboard", function (require) {
|
||||
"use strict";
|
||||
|
||||
const wTourUtils = require("website.tour_utils");
|
||||
|
||||
wTourUtils.registerEditionTour(
|
||||
"backend_dashboard",
|
||||
{
|
||||
test: true,
|
||||
url: '/',
|
||||
},
|
||||
[
|
||||
{
|
||||
trigger: 'button[data-menu-xmlid="website.menu_reporting"]',
|
||||
},
|
||||
{
|
||||
trigger: '.dropdown-item[data-menu-xmlid="website.menu_website_google_analytics"]',
|
||||
},
|
||||
{
|
||||
// Analytics section should always be present even when empty / not hooked to anything
|
||||
trigger: 'h2:contains("Analytics")',
|
||||
content: "Check if dashboard loads",
|
||||
run: function () {},
|
||||
},
|
||||
]
|
||||
);
|
||||
});
|
||||
@@ -142,9 +142,6 @@ class TestUi(odoo.tests.HttpCase):
|
||||
})
|
||||
self.start_tour(self.env['website'].get_client_action_url('/'), 'restricted_editor', login='restricted')
|
||||
|
||||
def test_03_backend_dashboard(self):
|
||||
self.start_tour('/@/', 'backend_dashboard', login='admin')
|
||||
|
||||
def test_04_website_navbar_menu(self):
|
||||
website = self.env['website'].search([], limit=1)
|
||||
self.env['website.menu'].create({
|
||||
|
||||
@@ -469,7 +469,7 @@
|
||||
<field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="ir_actions_server_website_google_analytics" model="ir.actions.server">
|
||||
<record id="ir_actions_server_website_analytics" model="ir.actions.server">
|
||||
<field name="name">Website: Analytics</field>
|
||||
<field name="model_id" ref="website.model_website"/>
|
||||
<field name="state">code</field>
|
||||
@@ -638,11 +638,11 @@
|
||||
action="website.ir_actions_server_website_dashboard"
|
||||
active="0"/>
|
||||
|
||||
<menuitem id="menu_website_google_analytics"
|
||||
<menuitem id="menu_website_analytics"
|
||||
name="Analytics"
|
||||
sequence="20"
|
||||
parent="menu_reporting"
|
||||
action="website.ir_actions_server_website_google_analytics"/>
|
||||
action="website.ir_actions_server_website_analytics"/>
|
||||
|
||||
<menuitem id="menu_optimize_seo"
|
||||
name="Optimize SEO"
|
||||
|
||||
@@ -72,7 +72,7 @@ odoo.define("website_sale.tour_shop", function (require) {
|
||||
content: _t("Click here to open the reporting menu"),
|
||||
position: "bottom",
|
||||
}, {
|
||||
trigger: "a[data-menu-xmlid='website.menu_website_dashboard'], a[data-menu-xmlid='website.menu_website_google_analytics']",
|
||||
trigger: "a[data-menu-xmlid='website.menu_website_dashboard'], a[data-menu-xmlid='website.menu_website_analytics']",
|
||||
content: _t("Let's now take a look at your eCommerce dashboard to get your eCommerce website ready in no time."),
|
||||
position: "bottom",
|
||||
run: "click",
|
||||
|
||||
Reference in New Issue
Block a user