[FIX] Define search view arch as unicode to make it possible to use non-ascii field descriptions

pull/508/head
Florent Cayré 2021-05-08 06:44:00 +02:00
parent 074be232fb
commit 0667b56df7
1 changed files with 6 additions and 6 deletions

View File

@ -408,14 +408,14 @@ class BiSQLView(models.Model):
'type': 'search',
'model': self.model_id.model,
'arch':
"""<?xml version="1.0"?>"""
"""<search string="Analysis">{}"""
"""<group expand="1" string="Group By">{}</group>"""
"""</search>""".format(
"".join(
u"""<?xml version="1.0"?>"""
u"""<search string="Analysis">{}"""
u"""<group expand="1" string="Group By">{}</group>"""
u"""</search>""".format(
u"".join(
[x._prepare_search_field()
for x in self.bi_sql_view_field_ids]),
"".join(
u"".join(
[x._prepare_search_filter_field()
for x in self.bi_sql_view_field_ids]))
}