1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
odoo.define("bus.tour", function (require) {
"use strict";
const tour = require("web_tour.tour");
tour.register("bundle_changed_notification", {
test: true,
url: '/web',
}, [{
trigger: '.o_web_client',
run() {
const webClient = odoo.__DEBUG__.services['web.web_client'];
const _delayFn = webClient._getBundleNotificationDelay;
webClient._getBundleNotificationDelay = () => 0;
this.call('bus_service', 'trigger',
'notification',
[[['db_name', 'bundle_changed'], ['web.assets_backend', 'hash']]]
);
webClient._getBundleNotificationDelay = _delayFn;
}
}, {
trigger: '.o_notification_title:contains(Refresh)',
}]
);
});
|