From fbf347498f1cc7b74ef373179b7bcae201715c24 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Wed, 11 Mar 2020 09:38:28 +0000 Subject: [REF] web: Control panel Owl Refactoring of the control panel with the Owl framework. The MVC structure of the control panel has been changed to a 'component <-> model' relationship. As such: - Removed the old control panel: view/model/controller/renderer - Created a new Owl Component (ControlPanel) - Created a new class: the Model (an Owl Store did not fit here) and a newly designed ControlPanelModel extending it Refactored all inner subcomponents, including: - Pager - ActionMenus (peviously SideBar) - Filter menu > Custom filter item - Group by menu > Custom group by item > Removal of groupby_menu_mixin (and refactored graph controller in sibling commit) - Time range menu - Favorite menu > Custom favorite item > Moved the favorite menu registry to the favorite_menu file - Search bar > Removed and splitted auto-completion dropdown logic between the new SearchBar Component (descriptions) and to the new ControlPanelModel (domains). The templates (all in web/base.xml) have been adapted to the new standards. Most of the DOM structure remains unchanged with some occasional improvements (replace hiding with not rendering, removed pointless wrapper divs, etc.). Part of task 2196029 Co-authored-by: Mathieu Duckerts-Antoine --- addons/web/static/src/xml/base.xml | 993 +++++++++++++++++++++++-------------- 1 file changed, 609 insertions(+), 384 deletions(-) (limited to 'addons/web/static/src/xml/base.xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 07919bcfa84..9e799e44e38 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -3,7 +3,97 @@ - + + + + + +
+ + +
+
+ + @@ -18,15 +108,350 @@ - + +
+ + + This date is on the future. Make sure it is what you expected. + + +
+
+ + - + +
+ + +
+
+ + + + _onItemRemoved + + + + Are you sure that you want to remove this filter? + This filter is global and will be removed for everybody if you continue. + + + + + + + + + + + + + + + + +
+
+ + + + + + +
+ + + + + +
+
+ + +
+ + + +
+
+ +