From ad673e58cf4e6597e4688efc3774923bf5527be0 Mon Sep 17 00:00:00 2001 From: "laetitia.gangloff@acsone.eu" Date: Fri, 1 Aug 2014 14:35:23 +0200 Subject: [PATCH] set name in lower case when clean it --- mis_builder/models/mis_builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 7278e495..b31feb7b 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -60,7 +60,7 @@ def _utc_midnight(d, tz_name, add_day=0): def _clean(varStr): - return re.sub('\W|^(?=\d)', '_', varStr) + return re.sub('\W|^(?=\d)', '_', varStr).lower() class mis_report_kpi(orm.Model):