From aed8023d4944c6a73fc473181c490842f5a0a29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 11 May 2016 11:11:52 +0200 Subject: [PATCH] [FIX] mis_builder: a few bug in mis_builder_style --- mis_builder/models/mis_builder_style.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mis_builder/models/mis_builder_style.py b/mis_builder/models/mis_builder_style.py index 2c2db31c..3208623e 100644 --- a/mis_builder/models/mis_builder_style.py +++ b/mis_builder/models/mis_builder_style.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- -# © 2016 Therp BV SA/NV () +# © 2016 Therp BV () +# © 2016 ACSONE SA/NV () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from openerp import api, fields, models @@ -47,11 +48,9 @@ class MisReportKpiStyle(models.Model): } color = fields.Char( - required=True, help='Line color in valid RGB code (from #000000 to #FFFFFF)', ) background_color = fields.Char( - required=True, help='Line color in valid RGB code (from #000000 to #FFFFFF)' ) font_style = fields.Selection( @@ -92,10 +91,10 @@ class MisReportKpiStyle(models.Model): ('font-size', self.font_size), ('color', self.color), ('background-color', self.background_color), - ('indent-level', str(self.indent_level)) + ('indent-level', self.indent_level) ] css_list = [ - x[0] + ':' + x[1] for x in css_attributes if x[1] + '%s:%s' % x for x in css_attributes if x[1] ] return ';'.join(css_item for css_item in css_list)