Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bi_sql_editor/models/bi_sql_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def check_manual_fields(self, model):
for sql_field in sql_fields:
if (
sql_field[0] in model._fields
and sql_field[1] in ("integer", "float")
and sql_field[1] in ("integer", "float", "date", "datetime")
and sql_field[2]
):
model._fields[sql_field[0]].group_operator = sql_field[2]
Expand Down
2 changes: 1 addition & 1 deletion bi_sql_editor/views/view_bi_sql_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field
name='group_operator'
attrs="{
'invisible': ['!', ('ttype', 'in', ('float', 'integer'))]}"
'invisible': ['!', ('ttype', 'in', ('float', 'integer', 'date', 'datetime'))],}"
/>
<field
name="ttype"
Expand Down
Loading