From 5d0db8f07f441f2327ab2fce42386f92df10e314 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 6 Feb 2013 15:16:41 +0100
Subject: [PATCH] new business template erp5_movement_table_catalog

---
 .../datetime_key_list.xml                     |   4 +
 .../z0_drop_movement.catalog_keys.xml         |   5 +
 .../erp5_mysql_innodb/z0_drop_movement.xml    |  64 ++++++++++
 .../z0_uncatalog_movement.catalog_keys.xml    |   5 +
 .../z0_uncatalog_movement.xml                 |  68 ++++++++++
 .../z_catalog_movement_list.catalog_keys.xml  |  14 +++
 .../z_catalog_movement_list.xml               | 117 ++++++++++++++++++
 .../z_create_movement.catalog_keys.xml        |   5 +
 .../erp5_mysql_innodb/z_create_movement.xml   |  89 +++++++++++++
 .../related_key_list.xml                      |   4 +
 .../result_table_list.xml                     |   3 +
 .../bt/description                            |   1 +
 bt5/erp5_movement_table_catalog/bt/revision   |   1 +
 .../bt/template_catalog_datetime_key_list     |   2 +
 .../bt/template_catalog_method_id_list        |   4 +
 .../bt/template_catalog_related_key_list      |   2 +
 .../bt/template_catalog_result_table_list     |   1 +
 .../bt/template_format_version                |   1 +
 bt5/erp5_movement_table_catalog/bt/title      |   1 +
 bt5/erp5_movement_table_catalog/bt/version    |   1 +
 20 files changed, 392 insertions(+)
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
 create mode 100644 bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml
 create mode 100644 bt5/erp5_movement_table_catalog/bt/description
 create mode 100644 bt5/erp5_movement_table_catalog/bt/revision
 create mode 100644 bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list
 create mode 100644 bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list
 create mode 100644 bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list
 create mode 100644 bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list
 create mode 100644 bt5/erp5_movement_table_catalog/bt/template_format_version
 create mode 100644 bt5/erp5_movement_table_catalog/bt/title
 create mode 100644 bt5/erp5_movement_table_catalog/bt/version

diff --git a/bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml b/bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
new file mode 100644
index 0000000000..d52160dd3b
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogDateTimeKeyTemplateItem/datetime_key_list.xml
@@ -0,0 +1,4 @@
+<key_list>
+ <key>movement.start_date</key>
+ <key>movement.stop_date</key>
+</key_list>
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
new file mode 100644
index 0000000000..b0fe64af00
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.catalog_keys.xml
@@ -0,0 +1,5 @@
+<catalog_method>
+ <item key="sql_clear_catalog" type="int">
+  <value>1</value>
+ </item>
+</catalog_method>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
new file mode 100644
index 0000000000..b4b6df0da9
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_drop_movement.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="SQL" module="Products.ZSQLMethods.SQL"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>allow_simple_one_argument_traversal</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>arguments_src</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>cache_time_</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>class_file_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>class_name_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>connection_hook</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>connection_id</string> </key>
+            <value> <string>erp5_sql_connection</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>z0_drop_movement</string> </value>
+        </item>
+        <item>
+            <key> <string>max_cache_</string> </key>
+            <value> <int>100</int> </value>
+        </item>
+        <item>
+            <key> <string>max_rows_</string> </key>
+            <value> <int>1000</int> </value>
+        </item>
+        <item>
+            <key> <string>src</string> </key>
+            <value> <string>DROP TABLE IF EXISTS movement</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
new file mode 100644
index 0000000000..d29d36d9f0
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.catalog_keys.xml
@@ -0,0 +1,5 @@
+<catalog_method>
+ <item key="sql_uncatalog_object" type="int">
+  <value>1</value>
+ </item>
+</catalog_method>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
new file mode 100644
index 0000000000..2446d3c624
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z0_uncatalog_movement.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="SQL" module="Products.ZSQLMethods.SQL"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>allow_simple_one_argument_traversal</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>arguments_src</string> </key>
+            <value> <string>uid</string> </value>
+        </item>
+        <item>
+            <key> <string>cache_time_</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>class_file_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>class_name_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>connection_hook</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>connection_id</string> </key>
+            <value> <string>erp5_sql_connection</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>z0_uncatalog_movement</string> </value>
+        </item>
+        <item>
+            <key> <string>max_cache_</string> </key>
+            <value> <int>100</int> </value>
+        </item>
+        <item>
+            <key> <string>max_rows_</string> </key>
+            <value> <int>1000</int> </value>
+        </item>
+        <item>
+            <key> <string>src</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+DELETE FROM movement WHERE <dtml-sqltest uid op=eq type=int>
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
new file mode 100644
index 0000000000..d471b5478e
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.catalog_keys.xml
@@ -0,0 +1,14 @@
+<catalog_method>
+ <item key="sql_catalog_object_list" type="int">
+  <value>1</value>
+ </item>
+ <item key="_is_filtered_archive" type="int">
+  <value>1</value>
+ </item>
+ <item key="_filter_expression_archive" type="str">
+  <value>python: context.providesIMovement()</value>
+ </item>
+ <item key="_filter_expression_cache_key_archive" type="tuple">
+  <value>portal_type</value>
+ </item>
+</catalog_method>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
new file mode 100644
index 0000000000..c41b2bb833
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_movement_list.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="SQL" module="Products.ZSQLMethods.SQL"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>allow_simple_one_argument_traversal</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>arguments_src</string> </key>
+            <value> <string>isMovement\n
+uid\n
+getExplanationUid\n
+getSourceUid\n
+getDestinationUid\n
+getResourceUid\n
+getQuantity\n
+getStartDate\n
+getStopDate\n
+getPrice\n
+isAccountable\n
+isDivergent\n
+getVariationText</string> </value>
+        </item>
+        <item>
+            <key> <string>cache_time_</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>class_file_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>class_name_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>connection_hook</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>connection_id</string> </key>
+            <value> <string>erp5_sql_connection</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>z_catalog_movement_list</string> </value>
+        </item>
+        <item>
+            <key> <string>max_cache_</string> </key>
+            <value> <int>100</int> </value>
+        </item>
+        <item>
+            <key> <string>max_rows_</string> </key>
+            <value> <int>1000</int> </value>
+        </item>
+        <item>
+            <key> <string>src</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+DELETE FROM\n
+  movement\n
+WHERE\n
+<dtml-in uid>\n
+  uid=<dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> OR </dtml-if>\n
+</dtml-in>\n
+;\n
+\n
+<dtml-var "\'\\0\'"><dtml-let movement_list="[]">\n
+  <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
+    <dtml-if "isMovement[loop_item]">\n
+      <dtml-call expr="movement_list.append(loop_item)">\n
+    </dtml-if>\n
+  </dtml-in>\n
+  <dtml-if expr="_.len(movement_list) > 0">\n
+INSERT INTO\n
+  movement\n
+VALUES\n
+    <dtml-in prefix="loop" expr="movement_list">\n
+( \n
+  <dtml-sqlvar expr="uid[loop_item]" type="int">,\n
+  <dtml-sqlvar expr="getExplanationUid[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="getSourceUid[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="getDestinationUid[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="getQuantity[loop_item]" type="float" optional>,\n
+  <dtml-sqlvar expr="getStartDate[loop_item]" type="datetime" optional>,\n
+  <dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>,\n
+  <dtml-sqlvar expr="getPrice[loop_item]" type="float" optional>,\n
+  <dtml-sqlvar expr="isAccountable[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="isDivergent[loop_item]" type="int" optional>,\n
+  <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>\n
+)\n
+<dtml-if sequence-end><dtml-else>,</dtml-if>\n
+    </dtml-in>\n
+  </dtml-if>\n
+</dtml-let>\n
+
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
new file mode 100644
index 0000000000..b0fe64af00
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.catalog_keys.xml
@@ -0,0 +1,5 @@
+<catalog_method>
+ <item key="sql_clear_catalog" type="int">
+  <value>1</value>
+ </item>
+</catalog_method>
diff --git a/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
new file mode 100644
index 0000000000..6abcc41613
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="SQL" module="Products.ZSQLMethods.SQL"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>allow_simple_one_argument_traversal</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>arguments_src</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>cache_time_</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>class_file_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>class_name_</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>connection_hook</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>connection_id</string> </key>
+            <value> <string>erp5_sql_connection</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>z_create_movement</string> </value>
+        </item>
+        <item>
+            <key> <string>max_cache_</string> </key>
+            <value> <int>100</int> </value>
+        </item>
+        <item>
+            <key> <string>max_rows_</string> </key>
+            <value> <int>1000</int> </value>
+        </item>
+        <item>
+            <key> <string>src</string> </key>
+            <value> <string># Host:\n
+# Database: test\n
+# Table: \'movement\'\n
+#\n
+CREATE TABLE `movement` (\n
+  `uid` BIGINT UNSIGNED NOT NULL,\n
+  `explanation_uid` BIGINT UNSIGNED default \'0\',\n
+  `source_uid` BIGINT UNSIGNED default \'0\',\n
+  `destination_uid` BIGINT UNSIGNED default \'0\',\n
+  `resource_uid` BIGINT UNSIGNED default \'0\',\n
+  `quantity` real default \'0.0\',\n
+  `start_date` datetime,\n
+  `stop_date` datetime,\n
+  `price` real,\n
+  `is_accountable` bool,\n
+  `is_divergent` bool,\n
+  `variation_text` VARCHAR(255),\n
+  PRIMARY KEY `uid` (`uid`),\n
+  KEY `explanation_uid` (`explanation_uid`),\n
+  KEY `source_uid` (`source_uid`),\n
+  KEY `destination_uid` (`destination_uid`),\n
+  KEY `resource_uid` (`resource_uid`),\n
+  KEY `is_accountable` (`is_accountable`),\n
+  KEY `variation_text` (`variation_text`)\n
+) ENGINE=InnoDB;\n
+</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml b/bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
new file mode 100644
index 0000000000..6172e2c380
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
@@ -0,0 +1,4 @@
+<key_list>
+ <key>explanation_portal_type | movement,catalog/portal_type/z_related_explanation</key>
+ <key>explanation_simulation_state | movement,catalog/simulation_state/z_related_explanation</key>
+</key_list>
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml b/bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml
new file mode 100644
index 0000000000..74bafaddda
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/CatalogResultTableTemplateItem/result_table_list.xml
@@ -0,0 +1,3 @@
+<key_list>
+ <key>movement</key>
+</key_list>
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/description b/bt5/erp5_movement_table_catalog/bt/description
new file mode 100644
index 0000000000..c4f23f3270
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/description
@@ -0,0 +1 @@
+Compatibility business template adding back movement table.
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/revision b/bt5/erp5_movement_table_catalog/bt/revision
new file mode 100644
index 0000000000..e440e5c842
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/revision
@@ -0,0 +1 @@
+3
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list b/bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list
new file mode 100644
index 0000000000..99b27f14d3
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/template_catalog_datetime_key_list
@@ -0,0 +1,2 @@
+movement.start_date
+movement.stop_date
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list b/bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list
new file mode 100644
index 0000000000..6b8cbcc593
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/template_catalog_method_id_list
@@ -0,0 +1,4 @@
+erp5_mysql_innodb/z0_drop_movement
+erp5_mysql_innodb/z0_uncatalog_movement
+erp5_mysql_innodb/z_catalog_movement_list
+erp5_mysql_innodb/z_create_movement
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list b/bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list
new file mode 100644
index 0000000000..e650869c51
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/template_catalog_related_key_list
@@ -0,0 +1,2 @@
+explanation_portal_type | movement,catalog/portal_type/z_related_explanation
+explanation_simulation_state | movement,catalog/simulation_state/z_related_explanation
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list b/bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list
new file mode 100644
index 0000000000..341af95b13
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/template_catalog_result_table_list
@@ -0,0 +1 @@
+movement
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/template_format_version b/bt5/erp5_movement_table_catalog/bt/template_format_version
new file mode 100644
index 0000000000..56a6051ca2
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/template_format_version
@@ -0,0 +1 @@
+1
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/title b/bt5/erp5_movement_table_catalog/bt/title
new file mode 100644
index 0000000000..ddf0e0a27e
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/title
@@ -0,0 +1 @@
+erp5_movement_table_catalog
\ No newline at end of file
diff --git a/bt5/erp5_movement_table_catalog/bt/version b/bt5/erp5_movement_table_catalog/bt/version
new file mode 100644
index 0000000000..ceab6e11ec
--- /dev/null
+++ b/bt5/erp5_movement_table_catalog/bt/version
@@ -0,0 +1 @@
+0.1
\ No newline at end of file
-- 
2.30.9