blob: ba89bed4f3c3801631409e2c57b026af3b01bc99 (
plain)
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
26
|
odoo.define('test_website.json_auth', function (require) {
'use strict';
var tour = require('web_tour.tour');
var session = require('web.session')
tour.register('test_json_auth', {
test: true,
}, [{
trigger: 'body',
run: async function () {
await session.rpc('/test_get_dbname').then( function (result){
return session.rpc("/web/session/authenticate", {
db: result,
login: 'admin',
password: 'admin'
});
});
window.location.href = window.location.origin;
},
}, {
trigger: 'span:contains(Mitchell Admin), span:contains(Administrator)',
run: function () {},
}
]);
});
|