From 6b35cacb2ae1fe0a61c52897db4aab503c9e2255 Mon Sep 17 00:00:00 2001 From: poma-odoo Date: Wed, 8 Mar 2023 23:57:52 +0100 Subject: [PATCH] [FIX] contributing/coding_guidelines: remove mention to assets.xml We no longer load assets by xml files, but we use __manifest__.py for that. closes odoo/documentation#3720 Signed-off-by: Antoine Vandevenne (anv) --- content/contributing/development/coding_guidelines.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/content/contributing/development/coding_guidelines.rst b/content/contributing/development/coding_guidelines.rst index 0c9603f93..208f38625 100644 --- a/content/contributing/development/coding_guidelines.rst +++ b/content/contributing/development/coding_guidelines.rst @@ -88,15 +88,13 @@ Concerning *views*, backend views should be split like models and suffixed by ``_views.xml``. Backend views are list, form, kanban, activity, graph, pivot, .. views. To ease split by model in views main menus not linked to specific actions may be extracted into an optional ``_menus.xml`` file. Templates (QWeb -pages used notably for portal / website display) and bundles (import of JS and -CSS assets) are put in separate files. Those are respectively -``_templates.xml`` and ``assets.xml`` files. +pages used notably for portal / website display) are put in separate files named +``_templates.xml``. .. code-block:: text addons/plant_nursery/ |-- views/ - | | -- assets.xml (import of JS / CSS) | | -- plant_nursery_menus.xml (optional definition of main menus) | | -- plant_nursery_views.xml (backend views) | | -- plant_nursery_templates.xml (portal templates) @@ -220,7 +218,6 @@ The complete tree of our Odoo module therefore looks like | | | |-- widget_a.xml | | | |-- widget_a.xml |-- views/ - | |-- assets.xml | |-- plant_nursery_menus.xml | |-- plant_nursery_views.xml | |-- plant_nursery_templates.xml