Browse Source

[FIX] bi_sql_editor: Add required attribute name on filters

14.0-report-py3o-pr-506
hveficent 5 years ago
committed by David James
parent
commit
21d1d0b19e
  1. 9
      bi_sql_editor/models/bi_sql_view_field.py

9
bi_sql_editor/models/bi_sql_view_field.py

@ -227,7 +227,10 @@ class BiSQLViewField(models.Model):
self.ensure_one()
res = ''
if self.field_description and self.is_group_by:
res =\
"""<filter string="%s" context="{'group_by':'%s'}"/>""" % (
self.field_description, self.name)
res = \
"""<filter name="%s" string="%s"
context="{'group_by':'%s'}"/>""" % (
self.field_description.lower().replace(' ', '_'),
self.field_description, self.name
)
return res
Loading…
Cancel
Save