From 232f1dba234a80cfd3a7b94b302b848a78728e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 21 Mar 2023 07:50:46 +0000 Subject: [PATCH] [MOV] website_forum: split templates per main usage PURPOSE Reorganize website_forum module. This allows to better locate code, understand organization, and prepare future changes. SPECIFICATIONS Split templates by main usage. Files have been duplicated previously, they are now cleaned to keep only content relevant to their usage. Split is done according to * base file: layouts for main actions not specifically managed in other sub-files: display a forum, manage tags, post a new question or edit a question; * '_forum_all': 'all' page in multi-forum display, displaying the list of available forum; * '_layout': layouting templates. Modifications to global layout and forum specific page header used through all main templates; * '_moderation': moderation tools; * '_post': display a forum post; * '_tools': tooling and utility blocks, used as black boxes in various main templates; Task-3240082 (Forum: Reorganize and lint module) Part-of: odoo/odoo#114841 --- addons/website_forum/__manifest__.py | 6 + .../views/forum_forum_templates.xml | 1347 -------------- .../views/forum_forum_templates_forum_all.xml | 1575 ----------------- .../views/forum_forum_templates_layout.xml | 1416 +-------------- .../forum_forum_templates_moderation.xml | 1504 ---------------- .../views/forum_forum_templates_post.xml | 1109 ------------ .../views/forum_forum_templates_tools.xml | 1551 +--------------- 7 files changed, 20 insertions(+), 8488 deletions(-) diff --git a/addons/website_forum/__manifest__.py b/addons/website_forum/__manifest__.py index d5c721614ae..db06dae0e5b 100644 --- a/addons/website_forum/__manifest__.py +++ b/addons/website_forum/__manifest__.py @@ -33,8 +33,14 @@ Ask questions, get answers, no distractions 'views/res_users_views.xml', 'views/gamification_karma_tracking_views.xml', 'views/forum_menus.xml', + 'views/base_contact_templates.xml', 'views/forum_forum_templates.xml', + 'views/forum_forum_templates_forum_all.xml', + 'views/forum_forum_templates_layout.xml', + 'views/forum_forum_templates_moderation.xml', + 'views/forum_forum_templates_post.xml', + 'views/forum_forum_templates_tools.xml', 'views/website_profile_templates.xml', 'views/snippets/snippets.xml', diff --git a/addons/website_forum/views/forum_forum_templates.xml b/addons/website_forum/views/forum_forum_templates.xml index 26aba760824..440279f1b46 100644 --- a/addons/website_forum/views/forum_forum_templates.xml +++ b/addons/website_forum/views/forum_forum_templates.xml @@ -2,626 +2,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -