From cccc75d740ddd37e833d05457c086fa2261b1fa0 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Sat, 30 Apr 2016 12:48:06 +0200 Subject: [PATCH] [IMP] Improve style of Mis report widget buttons. Add report name in the widget. --- mis_builder/models/mis_builder.py | 1 + mis_builder/static/src/css/custom.css | 5 + mis_builder/static/src/xml/mis_widget.xml | 121 +++++++++++----------- 3 files changed, 68 insertions(+), 59 deletions(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 6c155bb5..c86d7b1b 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -1302,6 +1302,7 @@ class MisReportInstance(models.Model): compare_col.normalize_factor) }) return { + 'report_name': self.name, 'header': header, 'content': content, } diff --git a/mis_builder/static/src/css/custom.css b/mis_builder/static/src/css/custom.css index a17e37c3..14f4e6b1 100644 --- a/mis_builder/static/src/css/custom.css +++ b/mis_builder/static/src/css/custom.css @@ -33,4 +33,9 @@ .openerp .oe_mis_builder_buttons { padding-bottom: 10px; + padding-top: 10px; +} + +.oe_mis_builder_content { + padding: 20px; } diff --git a/mis_builder/static/src/xml/mis_widget.xml b/mis_builder/static/src/xml/mis_widget.xml index a6b33eb8..a6f8d29f 100644 --- a/mis_builder/static/src/xml/mis_widget.xml +++ b/mis_builder/static/src/xml/mis_widget.xml @@ -1,68 +1,71 @@