[MIG] web_disable_export_group: Migration to 13.0

TT26186
This commit is contained in:
João Marques
2020-10-21 09:11:29 +01:00
committed by David
parent 1afdc79e56
commit 6cb61e7f1d
15 changed files with 136 additions and 66 deletions

View File

@@ -0,0 +1,63 @@
/* Copyright 2020 Tecnativa - João Marques
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */
odoo.define("web_disable_export_group.tour", function(require) {
"use strict";
var core = require("web.core");
var tour = require("web_tour.tour");
var _t = core._t;
tour.register(
"export_tour_admin",
{
test: true,
url:
"/web#model=ir.ui.view&view_type=list&cids=&action=base.action_ui_view",
},
[
{
content: "Select all records",
trigger: ".custom-control-input:first",
},
{
content: "Open actions",
trigger: ".o_dropdown_toggler_btn",
},
{
content: "Check if Export button exists",
trigger:
'.o_control_panel div.o_dropdown_menu a:contains("' +
_t("Export") +
'")',
},
]
);
tour.register(
"export_tour_demo",
{
test: true,
url:
"/web#model=ir.ui.view&view_type=list&cids=&action=base.action_ui_view",
},
[
{
content: "Select all records",
trigger: ".custom-control-input:first",
},
{
content: "Open actions",
trigger: ".o_dropdown_toggler_btn",
},
{
content: "Check if Export button does not exist",
trigger:
'.o_control_panel div.o_dropdown_menu a:first:not(:contains("' +
_t("Export") +
'"))',
},
]
);
return {};
});