Commit 09dd9010 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

For the harvesters table, use the label automaton for the controller field and...

For the harvesters table, use the label automaton for the controller field and the label category instead of code.
parent 1439e206
......@@ -54,6 +54,7 @@
'Authors': 'Auteurs',
'Authors Cppm': 'Auteurs du CPPM',
'authors_roles': 'rôles des auteurs',
'Automaton': 'Automate',
'Available databases and tables': 'Available databases and tables',
'axes': 'axes',
'Axes': 'Axes',
......
......@@ -20,11 +20,11 @@ T("Authorize automatic scan.")
db.define_table("harvesters",
Field("id_teams", "reference teams", label='Team', notnull=True),
Field("id_projects", "reference projects", label='Project', notnull=True),
Field("controller", "string", length=255, comment=tp_controller, label='Category', notnull=True),
Field("controller", "string", length=255, comment=tp_controller, label='Automaton', notnull=True),
Field("host", "string", length=255, comment=tp_host, default=STORES[0], label='Store', notnull=True),
Field("collections", "string", length=255, comment=tp_collections, notnull=True),
Field("ratio", "double", comment=tp_ratio, default=1.0, notnull=True),
Field("id_categories", "reference categories", comment=tp_category, label='Code', notnull=True),
Field("id_categories", "reference categories", comment=tp_category, label='Category', notnull=True),
Field("scan", "boolean", comment=tp_scan, default=False),
migrate="harvesters.table")
......
......@@ -9,6 +9,8 @@
#-------------------------------------------------------------------------------
fieldsModifier = dbui.FieldsModifier('harvesters')
fieldsModifier.configure_field('collections', xtype='textarea')
fieldsModifier.configure_field('ratio', hidden=True)
fieldsModifier.configure_field('scan', hidden=True)
#-------------------------------------------------------------------------------
#
......@@ -41,7 +43,7 @@ gridModifier.configure_column('collections', width=300)
gridModifier.configure_column('max_records', width=70)
gridModifier.configure_column('ratio', width=40)
gridModifier.configure_column('scan', width=40)
gridModifier.hide_columns('ratio')
gridModifier.hide_columns('ratio', 'scan')
gridModifier.append_filter(('id_teams', '==', T('is equal to')))
gridModifier.append_filter(('id_projects', '==', 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