19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:39 +01:00
parent 38c6088dcc
commit d9452d2060
243 changed files with 30797 additions and 10815 deletions

View file

@ -1,16 +1,12 @@
odoo.define('test_website.json_auth', function (require) {
'use strict';
import { registry } from "@web/core/registry";
import { rpc } from "@web/core/network/rpc";
var tour = require('web_tour.tour');
var session = require('web.session')
tour.register('test_json_auth', {
test: true,
}, [{
registry.category("web_tour.tours").add('test_json_auth', {
steps: () => [{
trigger: 'body',
run: async function () {
await session.rpc('/test_get_dbname').then( function (result){
return session.rpc("/web/session/authenticate", {
await rpc('/test_get_dbname').then( function (result){
return rpc("/web/session/authenticate", {
db: result,
login: 'admin',
password: 'admin'
@ -18,9 +14,8 @@ tour.register('test_json_auth', {
});
window.location.href = window.location.origin;
},
expectUnloadPage: true,
}, {
trigger: 'span:contains(Mitchell Admin), span:contains(Administrator)',
run: function () {},
}
]);
});
]});