From fecb878d8345c24c0b066712366bbfd28ece969d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 1 May 2017 06:17:19 +0000
Subject: [PATCH] catalog: remove unused variationCategory related key

---
 product/ERP5/Tool/SimulationTool.py                           | 4 ----
 .../CatalogRelatedKeyTemplateItem/related_key_list.xml        | 1 -
 .../bt/template_catalog_related_key_list                      | 1 -
 .../CatalogRelatedKeyTemplateItem/related_key_list.xml        | 1 -
 .../bt/template_catalog_related_key_list                      | 1 -
 5 files changed, 8 deletions(-)

diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py
index 21720e6eba..0ceb878a95 100644
--- a/product/ERP5/Tool/SimulationTool.py
+++ b/product/ERP5/Tool/SimulationTool.py
@@ -763,10 +763,6 @@ class SimulationTool(BaseTool):
         if related_group_by:
           new_kw['related_key_dict_passthrough']['group_by_list'] = related_group_by
 
-      #variation_category_uid_list = self._generatePropertyUidList(variation_category)
-      #if len(variation_category_uid_list) :
-      #  new_kw['variationCategory'] = variation_category_uid_list
-
       new_kw['simulation_dict'] = self._getSimulationStateDict(
         simulation_state=simulation_state,
         omit_transit=omit_transit,
diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
index 473fcffe99..57e0956327 100644
--- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
+++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
@@ -65,5 +65,4 @@
  <key>translated_simulation_state_title | translation/translated_message/z_related_translated_simulation_state_title</key>
  <key>translated_validation_state | translation/translated_message/z_related_translated_validation_state</key>
  <key>translated_validation_state_title | translation/translated_message/z_related_translated_validation_state_title</key>
- <key>variationCategory | category/category_uid/z_related_uid</key>
 </key_list>
\ No newline at end of file
diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list
index 35c8220618..08ee18ad9a 100644
--- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list
+++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/template_catalog_related_key_list
@@ -41,7 +41,6 @@ item_section_category_uid | category/category_uid/z_related_section_uid_from_ite
 parent_relative_url | catalog/relative_url/z_related_parent
 resourceType | catalog/portal_type/z_related_resource_uid_from_stock
 grand_parent_portal_type | catalog,catalog/portal_type/z_related_grand_parent
-variationCategory | category/category_uid/z_related_uid
 translated_validation_state | translation/translated_message/z_related_translated_validation_state
 stock_resource_category_uid | category/category_uid/z_related_resource_uid_from_stock
 parent_title | catalog/title/z_related_parent
diff --git a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
index 1ad94ee69d..45ae1a8e9b 100644
--- a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
+++ b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/CatalogRelatedKeyTemplateItem/related_key_list.xml
@@ -37,5 +37,4 @@
  <key>translated_simulation_state_title | translation/translated_message/z_related_translated_simulation_state_title</key>
  <key>translated_validation_state | translation/translated_message/z_related_translated_validation_state</key>
  <key>translated_validation_state_title | translation/translated_message/z_related_translated_validation_state_title</key>
- <key>variationCategory | category/category_uid/z_related_uid</key>
 </key_list>
\ No newline at end of file
diff --git a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/bt/template_catalog_related_key_list b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/bt/template_catalog_related_key_list
index e8f336f3d4..dc389200bf 100644
--- a/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/bt/template_catalog_related_key_list
+++ b/product/ERP5/bootstrap/erp5_mysql_ndb_catalog/bt/template_catalog_related_key_list
@@ -30,7 +30,6 @@ item_section_category_uid | category/category_uid/z_related_section_uid_from_ite
 parent_specialise_portal_type | category,catalog/portal_type/z_related_parent_specialise
 resourceType | movement,catalog/portal_type/z_related_resource_from_movement
 grand_parent_portal_type | catalog,catalog/portal_type/z_related_grand_parent
-variationCategory | category/category_uid/z_related_uid
 translated_validation_state | translation/translated_message/z_related_translated_validation_state
 stock_resource_category_uid | category/category_uid/z_related_resource_uid_from_stock
 parent_title | catalog/title/z_related_parent
-- 
2.30.9