mirror of
https://github.com/odoo/documentation.git
synced 2026-01-03 02:09:27 +07:00
[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:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user