[DOC] web: export an object containing a comment is not supported

closes odoo/odoo#69407

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
Francois (fge)
2021-04-23 10:01:41 +00:00
parent cfdd7c3b5e
commit c1abb1841e
+27
View File
@@ -766,6 +766,33 @@ parser to transform native modules. There are, therefore, a number of limitation
import X ...
*/
- when you ``export`` an object, it can't contain a comment
.. code-block:: javascript
// supported
export {
a as b,
c,
d,
}
export {
a
} from "./file_a"
// not supported
export {
a as b, // this is a comment
c,
d,
}
export {
a /* this is a comment */
} from "./file_a"
- Odoo needs a way to determine if a module is described by a path (like ``./views/form_view``) or a name (like
``web.FormView``). It has to use a heuristic to do just that: if there is a ``/`` in the name, it is considered
a path. This means that Odoo does not really support anymore module names with a ``/``.