Skip to content

Commit

Permalink
Merge PR #3069 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 27, 2025
2 parents 0fe0548 + 50c8ade commit da26768
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion web_responsive/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"depends": ["web", "mail"],
"depends": ["web_tour", "mail"],
"development_status": "Production/Stable",
"maintainers": ["Tardo", "SplashS"],
"excludes": ["web_enterprise"],
Expand Down
36 changes: 21 additions & 15 deletions web_responsive/static/tests/test_patch.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
/* Copyright 2021 ITerra - Sergey Shebanin
* Copyright 2025 Carlos Lopez - Tecnativa
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
odoo.define("web_responsive.test_patch", function (require) {
"use strict";
odoo.define(
"web_responsive.test_patch",
["@web_tour/tour_service/tour_utils", "@web/core/utils/patch"],
function (require) {
"use strict";

const utils = require("web_tour.TourStepUtils");
const {stepUtils} = require("@web_tour/tour_service/tour_utils");
const {patch} = require("@web/core/utils/patch");

/* Make base odoo JS tests working */
utils.include({
showAppsMenuItem() {
return {
edition: "community",
trigger: ".o_navbar_apps_menu",
auto: true,
position: "bottom",
};
},
});
});
patch(stepUtils, {
/* Make base odoo JS tests working */
showAppsMenuItem() {
return {
edition: "community",
trigger: "button.o_grid_apps_menu__button",
auto: true,
position: "bottom",
};
},
});
}
);

0 comments on commit da26768

Please sign in to comment.