[FIX] ir.qweb: display the tail of node with 'groups'

Issue: tail of the node with groups disappears if the user dont have access to the node
This commit is contained in:
Christophe Matthieu
2015-09-30 16:24:25 +02:00
parent 7163d1692b
commit a04dcd8b26
+1 -1
View File
@@ -272,7 +272,7 @@ class QWeb(orm.AbstractModel):
uid = qwebcontext.get('request') and qwebcontext['request'].uid or None
can_see = self.user_has_groups(cr, uid, groups=attribute_value) if cr and uid else False
if not can_see:
return ''
return element.tail and self.render_tail(element.tail, element, qwebcontext) or ''
attribute_value = attribute_value.encode("utf8")