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

Simplify the database schema for the table lists2.

parent 4d796360
docs/db_schema/database.png

173 KB | W: | H:

docs/db_schema/database.png

177 KB | W: | H:

docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
docs/db_schema/database.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -358,9 +358,10 @@
<row name="source" null="0" autoincrement="0">
<datatype>string</datatype>
</row>
<row name="kwargs" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
<row name="id_events" null="0" autoincrement="0">
<datatype>integer</datatype>
<relation table="events" row="id" />
</row>
<row name="transform" null="1" autoincrement="0">
<datatype>string</datatype>
<default>NULL</default></row>
......
......@@ -190,7 +190,12 @@ class Report(object):
Field("title", "string", length=255),
Field("definition", "text"),
Field("source", "string", length=255, notnull=True),
Field("kwargs", "text"),
Field("id_events",
"reference events",
default=dbui.UNDEF_ID,
label="Event"),
Field("transform", "text"),
Field("group_field",
......
......@@ -217,11 +217,6 @@ class ReportUi(object):
language="json",
xtype="xaceeditorfield")
mdf.configure_field("kwargs",
editorHeight=220,
language="json",
xtype="xaceeditorfield")
mdf.configure_field("sorters",
height=210,
hideHeader=True,
......@@ -245,7 +240,7 @@ class ReportUi(object):
title=T("General"))
mdf.merge_fields("source",
"kwargs",
"id_events",
title=T("Source"))
mdf.merge_fields("transform",
......@@ -270,14 +265,15 @@ class ReportUi(object):
#
mdf = gridModifier("lists2")
mdf.configure_column("name", width=30)
mdf.hide_columns("title",
"columns",
mdf.hide_columns("columns",
"conditions",
"features",
"group_field",
"id_events",
"kwargs",
"sorters",
"source",
"title",
"transform")
#.....................................................................
......
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