diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_catalogTransformation.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_catalogTransformation.xml index 4e001b912d6c8eeaf1b2bbcd983ff0dbe93845d9..2f68315f29470449fad98cfdfd9970289a2119be 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_catalogTransformation.xml +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/SQLCatalog_catalogTransformation.xml @@ -69,8 +69,9 @@ from Products.ERP5Type.Document import newTempMovement\n # row_dict_list: list of rows to insert; each row is represented as a dict.}\n row_dict_dict_list = []\n \n +portal = context.getPortalObject()\n for transformation_relative_url, variation_list_list in transformation_item_list:\n - transformation = context.restrictedTraverse(transformation_relative_url)\n + transformation = portal.restrictedTraverse(transformation_relative_url)\n resource = transformation.getResourceValue()\n \n if resource is None:\n @@ -137,11 +138,12 @@ context.z_catalog_transformation_list(row_dict_dict_list=row_dict_dict_list)\n <string>Products.ERP5Type.Document</string> <string>newTempMovement</string> <string>row_dict_dict_list</string> + <string>_getattr_</string> + <string>context</string> + <string>portal</string> <string>_getiter_</string> <string>transformation_relative_url</string> <string>variation_list_list</string> - <string>_getattr_</string> - <string>context</string> <string>transformation</string> <string>resource</string> <string>None</string> diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision index cb37cb5c1fb749a2eaad380460a926969564408e..1a1f7f8270a4352d79f9cc9d01750cbe16e6e850 100644 --- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision +++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision @@ -1 +1 @@ -186 \ No newline at end of file +190 \ No newline at end of file