[IMP] web: update javascript odoo modules

This commit adapts the javascript modules section with the last
update https://github.com/odoo/odoo/pull/142858 and some outdated
features.
This commit is contained in:
Michaël Mattiello
2024-02-05 09:33:08 +01:00
parent 603518a6c5
commit ba773cb6c8
10 changed files with 47 additions and 112 deletions

View File

@@ -120,10 +120,6 @@ see how to create a `sub-component <{OWL_PATH}/doc/reference/component.md#sub-co
as the component. For example, if we have a `TodoList` component, its code should be in
`todo_list.js`, `todo_list.xml` and if necessary, `todo_list.scss`
.. important::
Don't forget :code:`/** @odoo-module **/` in your JavaScript files. More information on this can
be found :ref:`here <frontend/modules/native_js>`.
.. _tutorials/discover_js_framework/simple_card:
3. A simple `Card` component

View File

@@ -209,8 +209,6 @@ is hardcoded in the controller.
.. code-block:: js
/** @odoo-module */
import { registry } from '@web/core/registry';
import { galleryView } from '@awesome_gallery/gallery_view';
import { GalleryRenderer } from '@awesome_gallery/gallery_renderer';