|
|
@ -45,7 +45,7 @@ class BiSQLViewField(models.Model): |
|
|
|
'numeric': 'float', |
|
|
|
'text': 'char', |
|
|
|
'character varying': 'char', |
|
|
|
'date': 'datetime', |
|
|
|
'date': 'date', |
|
|
|
'timestamp without time zone': 'datetime', |
|
|
|
} |
|
|
|
|
|
|
@ -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 |