Commit 1fbb1d15 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update the history UI to handle the domain field.

parent 32d1c40b
...@@ -28,7 +28,8 @@ fieldsModifier.configure_field('note', height=150) ...@@ -28,7 +28,8 @@ fieldsModifier.configure_field('note', height=150)
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
formModifier = dbui.FormModifier('history') formModifier = dbui.FormModifier('history')
formModifier.merge_fields('id_teams', formModifier.merge_fields('id_domains',
'id_teams',
'id_projects', 'id_projects',
'id_fundings', 'id_fundings',
title=T('Metadata')) title=T('Metadata'))
...@@ -63,12 +64,14 @@ gridModifier = dbui.GridModifier('history') ...@@ -63,12 +64,14 @@ gridModifier = dbui.GridModifier('history')
gridModifier.configure(plugins=['pGridPaging']) gridModifier.configure(plugins=['pGridPaging'])
gridModifier.hide_columns('data', gridModifier.hide_columns('data',
'id_domains',
'id_object_categories', 'id_object_categories',
'id_people_categories', 'id_people_categories',
'note', 'note',
'percentage') 'percentage')
gridModifier.append_filter(('id_events', '==', T('is equal to'))) gridModifier.append_filter(('id_events', '==', T('is equal to')))
gridModifier.append_filter(('id_domains', '==', T('is equal to')))
gridModifier.append_filter(('id_teams', '==', T('is equal to'))) gridModifier.append_filter(('id_teams', '==', T('is equal to')))
gridModifier.append_filter(('id_projects', '==', T('is equal to'))) gridModifier.append_filter(('id_projects', '==', T('is equal to')))
gridModifier.append_filter(('id_fundings', '==', T('is equal to'))) gridModifier.append_filter(('id_fundings', '==', T('is equal to')))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment