Commit 62609903 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update the vt_selector to deal with the domain field.

parent 1fbb1d15
......@@ -7,6 +7,7 @@ tp_data = T("The field history.data contains the given value.")
virtdb.define_table('selector',
Field('year_start', 'integer', default=year),
Field('year_end', 'integer'),
Field('id_domains', 'reference domains', label=T('Domain')),
Field('id_teams', 'reference teams', label=T('Team')),
Field('id_projects', 'reference projects', label=T('Project')),
Field('id_fundings', 'reference fundings', label=T('Funding')),
......@@ -28,6 +29,7 @@ IS_IN_DB(db, 'alias_people_categories.category')
virtdb.selector.id_people_code.requires = \
IS_IN_DB(db, 'people_categories.code')
virtdb.selector.id_domains.requires = IS_IN_DB(db, 'domains.domain')
virtdb.selector.id_fundings.requires = IS_IN_DB(db, 'fundings.agency')
virtdb.selector.id_projects.requires = IS_IN_DB(db, 'projects.project')
virtdb.selector.id_teams.requires = IS_IN_DB(db, 'teams.team')
......@@ -46,6 +48,7 @@ mytype = 'xcomboboxuserreset'
text = T('select...')
fieldsModifier.configure_field('id_categories', emptyText=text, xtype=mytype)
fieldsModifier.configure_field('id_domains', emptyText=text, xtype=mytype)
fieldsModifier.configure_field('id_fundings', emptyText=text, xtype=mytype)
fieldsModifier.configure_field('id_object_categories', emptyText=text, xtype=mytype)
fieldsModifier.configure_field('id_object_code', emptyText=text, xtype=mytype)
......
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