From 4370d4217efa8c040e4bd7e2074dda68e0f0384d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Fri, 12 Aug 2016 12:08:38 -0300 Subject: [PATCH] Show/Hide Add tile form under 'Add to Dashboard' menu --- web_dashboard_tile/static/src/css/tile.css | 26 ++++++++++++------- .../static/src/xml/custom_xml.xml | 2 +- web_dashboard_tile/views/tile.xml | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/web_dashboard_tile/static/src/css/tile.css b/web_dashboard_tile/static/src/css/tile.css index 1d057cee..9bfdf0ae 100644 --- a/web_dashboard_tile/static/src/css/tile.css +++ b/web_dashboard_tile/static/src/css/tile.css @@ -1,24 +1,24 @@ -.openerp .oe_kanban_view .oe_dashbaord_tile{ +.openerp .oe_kanban_view .oe_dashboard_tile { width: 150px; height: 150px; border: 0; border-radius: 0; } -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label, -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_without_computed_value, -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_with_computed_value, -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_computed_value { +.openerp .oe_kanban_view .oe_dashboard_tile .tile_label, +.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_without_computed_value, +.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_with_computed_value, +.openerp .oe_kanban_view .oe_dashboard_tile .tile_computed_value { width: 140px; text-align: center; } -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_label{ +.openerp .oe_kanban_view .oe_dashboard_tile .tile_label{ padding: 5px; font-size: 15px; } -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_without_computed_value{ +.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_without_computed_value{ font-size: 52px; font-weight: bold; position: absolute; @@ -26,7 +26,7 @@ bottom: 5px; } -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_count_with_computed_value{ +.openerp .oe_kanban_view .oe_dashboard_tile .tile_count_with_computed_value{ font-size: 38px; font-weight: bold; position: absolute; @@ -34,7 +34,7 @@ bottom: 30px; } -.openerp .oe_kanban_view .oe_dashbaord_tile .tile_computed_value{ +.openerp .oe_kanban_view .oe_dashboard_tile .tile_computed_value{ font-size: 18px; font-weight: bold; position: absolute; @@ -42,3 +42,11 @@ bottom: 5px; font-style: italic; } + +.openerp .oe_searchview_drawer .oe_searchview_dashboard .oe_dashboard_tile_form { + display: none; +} + +.openerp .oe_searchview_drawer .oe_opened .oe_dashboard_tile_form { + display: block; +} \ No newline at end of file diff --git a/web_dashboard_tile/static/src/xml/custom_xml.xml b/web_dashboard_tile/static/src/xml/custom_xml.xml index 3e0c2316..38a0e3e9 100644 --- a/web_dashboard_tile/static/src/xml/custom_xml.xml +++ b/web_dashboard_tile/static/src/xml/custom_xml.xml @@ -2,7 +2,7 @@ -
+
diff --git a/web_dashboard_tile/views/tile.xml b/web_dashboard_tile/views/tile.xml index 36411ad8..5eef1756 100644 --- a/web_dashboard_tile/views/tile.xml +++ b/web_dashboard_tile/views/tile.xml @@ -61,7 +61,7 @@ -
+