mirror of
https://github.com/odoo/documentation.git
synced 2025-12-16 17:39:06 +07:00
[FIX] developer/*: consistent code-block language specification
X-original-commit: 387cf15e7f
Part-of: odoo/documentation#3029
This commit is contained in:
@@ -63,7 +63,7 @@ with a dedicated `assets` key which contains a dictionary. The dictionary maps
|
||||
bundle names (keys) to the list of files they contain (values). It looks
|
||||
like this:
|
||||
|
||||
.. code-block:: py
|
||||
.. code-block:: python
|
||||
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
|
||||
@@ -328,7 +328,7 @@ browser.
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
import { evaluateExpr } from "@web/core/py_js/py";
|
||||
|
||||
|
||||
@@ -161,11 +161,11 @@ direct child. This component is basically a live representation of the ordered
|
||||
list of components registered in the main components registry.
|
||||
|
||||
API
|
||||
.. code-block::
|
||||
.. code-block:: text
|
||||
|
||||
interface {
|
||||
Component: Owl Component class
|
||||
props?: any
|
||||
Component: Owl Component class
|
||||
props?: any
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ with the following three keys:
|
||||
|
||||
For example:
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
@@ -258,7 +258,7 @@ For example:
|
||||
|
||||
The systray registry is an ordered registry (with the `sequence` number):
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
const item = {
|
||||
Component: MySystrayItem
|
||||
@@ -291,7 +291,7 @@ The user menu calls all the functions defining items every time it is opened.
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
|
||||
@@ -902,7 +902,7 @@ API
|
||||
|
||||
remove the value with the given key from the :ref:`user context<frontend/framework/user_context>`
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
userService.removeFromContext("isFriend")
|
||||
|
||||
@@ -914,6 +914,6 @@ API
|
||||
|
||||
check if the user is part of a group
|
||||
|
||||
.. code-block:: js
|
||||
.. code-block:: javascript
|
||||
|
||||
const isInSalesGroup = await userService.hasGroup("sale.group_sales")
|
||||
|
||||
Reference in New Issue
Block a user