[FIX] base: traceback
Commit 9523d59 avoids to have the _logger.info at each print. However,
`lang_eval` is not defined.
@JKE-be: you might want to review this more thoroughly.
opw-673972
This commit is contained in:
@@ -444,7 +444,7 @@ class QWeb(orm.AbstractModel):
|
||||
d.context['lang'] = self.eval(lang, d) or lang
|
||||
if not self.pool['res.lang'].search(d.cr, d.uid, [('code', '=', d.context['lang'])], count=True, context=d.context):
|
||||
d.context['lang'] = qwebcontext.get('res_company') and qwebcontext.get('res_company').partner_id.lang or 'en_US'
|
||||
_logger.info("'%s' is not a valid language code, is an empty field or is not installed, falling back to %s" % (lang_eval, d.context['lang']))
|
||||
_logger.info("'%s' is not a valid language code, is an empty field or is not installed, falling back to %s" % (lang, d.context['lang']))
|
||||
|
||||
d[0] = self.render_element(element, template_attributes, generated_attributes, d)
|
||||
cr = d.get('request') and d['request'].cr or None
|
||||
|
||||
Reference in New Issue
Block a user