Files
odoo_source/addons/web/static/tests/main_tests.js
T
29726e8fd0 [ADD] web: add owl 1.0.0-beta1 to odoo
With this commit, we properly introduce the Owl library into our beloved
codebase. More information on the Owl library can be found in the project
repository: https://github.com/odoo/owl/

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Julien Mougenot <jum@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2019-12-09 11:09:10 +00:00

15 lines
428 B
JavaScript

// define the 'web.web_client' module because some other modules require it
odoo.define('web.web_client', async function (require) {
"use strict";
const session = require("web.session");
const WebClient = require('web.WebClient');
const webClient = new WebClient();
await session.is_bound;
session.owlTemplates = session.owlTemplates.replace(/t-transition/g, 'transition');
return webClient;
});