[FIX] base: ir.qweb: ensure element.tail is correctly encoded
authorChristophe Combelles <ccomb@free.fr>
Thu, 10 Jul 2014 14:47:06 +0000 (17:47 +0300)
committerOlivier Dony <odo@openerp.com>
Wed, 30 Jul 2014 09:41:15 +0000 (11:41 +0200)
commitb64bd885b00bc6ef9956af330888a77fccda7fbb
tree3d63357214d36ea2a42786b310e67b90f05c3baf
parent64ed698a584e8c5242369e2e42b6f7d26e5c8694
[FIX] base: ir.qweb: ensure element.tail is correctly encoded

element.{text,tail} are either ascii-compatible `str`, or `unicode`
when non-ascii-compatible. This could force the implicit decoding
of utf-8 encoded contents when joining template bits, breaking
the rendering.

Fixes #1085, and related to #1130
openerp/addons/base/ir/ir_qweb.py