mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_disable_export_group: Migration to 13.0
TT26186
This commit is contained in:
@@ -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 {};
|
||||
});
|
||||
Reference in New Issue
Block a user