[IMP] developer/*: update js code to ES6

This PR updates javascript code to be up to date with the codebase standards:
- use the `static` keyword when possible
- proper owl imports
- removed unecessary `@odoo-module` directives

Task ID: 2258359

closes odoo/documentation#11466

Signed-off-by: Bastien Fafchamps (bafa) <bafa@odoo.com>
This commit is contained in:
Bastien Fafchamps (bafa)
2024-11-28 17:27:01 +00:00
parent 34c1edef12
commit 8ef0514ad1
10 changed files with 108 additions and 103 deletions
@@ -380,8 +380,6 @@ The `data-js` attribute can be assigned to an options group in order to define a
.. code-block:: javascript
/** @odoo-module */
import options from 'web_editor.snippets.options';
options.registry.CustomMethodName = options.Class.extend({