[REF] *: convert last odoo modules to esm

This commit converts odoo modules that haven't been converted with
commit https://github.com/odoo/odoo/pull/117305/commits/e10b45c69e72f09128e49eb46e42834b1ef515d7.
The goal is to deprecate odoo.define in favor of native module and then
simplify boot.js by removing the regexp that finds module dependencies.

task id: 3162300

closes odoo/odoo#118812

Signed-off-by: Géry Debongnie <ged@odoo.com>
This commit is contained in:
Michael (mcm)
2023-04-19 21:58:39 +02:00
parent ebf646b44f
commit 8ec2e8cf80
23 changed files with 95 additions and 133 deletions
@@ -1,3 +1,4 @@
/* @odoo-module */
//
// This file is meant to regroup your javascript code. You can either copy/past
// any code that should be executed on each page loading or write your own
@@ -6,11 +7,8 @@
// world !' message in a popup:
//
/*
odoo.define('website.user_custom_code', function (require) {
'use strict';
var Dialog = require('web.Dialog');
var publicWidget = require('web.public.widget');
import Dialog from 'web.Dialog';
import publicWidget from 'web.public.widget';
publicWidget.registry.HelloWorldPopup = publicWidget.Widget.extend({
selector: '#wrapwrap',
@@ -19,6 +17,5 @@ publicWidget.registry.HelloWorldPopup = publicWidget.Widget.extend({
Dialog.alert(this, "Hello, world!");
return this._super.apply(this, arguments);
},
})
});
*/