From 8a33bd9abf4c9f7d38907d6990ec8a2fbc96d457 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 23 Apr 2015 15:15:59 +0200 Subject: [PATCH] [FIX] If user has no lang --- mis_builder/models/mis_builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 9c34950e..fb019a39 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -850,6 +850,8 @@ class mis_report_instance(orm.Model): period_values = {} lang = self.pool['res.users'].read( cr, uid, uid, ['lang'], context=context)['lang'] + if not lang: + lang = 'en_US' lang_id = self.pool['res.lang'].search( cr, uid, [('code', '=', lang)], context=context)