From 2752089382158098cf7e49aa8ff037604eb31ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Mon, 12 Feb 2018 21:02:10 -0300 Subject: [PATCH] Added 'dropdown' menu for Technical Features only (debug mode) --- web_dashboard_tile/README.rst | 3 ++- web_dashboard_tile/static/src/css/tile.css | 7 +++++++ web_dashboard_tile/views/tile.xml | 17 +++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/web_dashboard_tile/README.rst b/web_dashboard_tile/README.rst index daa3a2eb..84b8015b 100644 --- a/web_dashboard_tile/README.rst +++ b/web_dashboard_tile/README.rst @@ -31,7 +31,8 @@ Usage Known issues ============ -* Can not edit tile from dashboard (color, sequence, function, ...). +* Can not edit color from dashboard +* Can not edit sequence from dashboard * Original context is ignored. * Original domain and filter are not restored. * To preserve a relative date domain, you have to manually edit the tile's domain from `Configuration > User Interface > Dashboard Tile`. You can use the same variables available in filters (`uid`, `context_today()`, `current_date`, `time`, `datetime`, `relativedelta`). diff --git a/web_dashboard_tile/static/src/css/tile.css b/web_dashboard_tile/static/src/css/tile.css index 61045f6f..723cb51f 100644 --- a/web_dashboard_tile/static/src/css/tile.css +++ b/web_dashboard_tile/static/src/css/tile.css @@ -58,3 +58,10 @@ /* hidden by default */ display: none; } + +/* Make dropdown menu button not affect text flow */ +.o_kanban_view .oe_dashboard_tile .o_dropdown_kanban { + float: none; + position: absolute; + right: 8px; +} diff --git a/web_dashboard_tile/views/tile.xml b/web_dashboard_tile/views/tile.xml index d427ea81..5221aa41 100644 --- a/web_dashboard_tile/views/tile.xml +++ b/web_dashboard_tile/views/tile.xml @@ -89,7 +89,7 @@ tile.tile - + @@ -104,6 +104,19 @@