From 75a102323b26e15032bccb06b6e59000b258c1d5 Mon Sep 17 00:00:00 2001 From: poma-odoo Date: Thu, 9 Mar 2023 08:35:52 +0100 Subject: [PATCH] [FW][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#3778 Forward-port-of: 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