Commit c6f935e7 authored by Nicolas Delaby's avatar Nicolas Delaby

Add new related key to filter resources from their use membership

parent 50f8c9a0
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="SQL" module="Products.ZSQLMethods.SQL"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n
table_1</string> </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_related_resource_from_use</string> </value>
</item>
<item>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-comment>\n
table_0 category as resource\n
table_1 category as use\n
</dtml-comment>\n
catalog.uid = <dtml-var table_0>.uid\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.resource.getUid()">\n
AND <dtml-var table_0>.category_uid = <dtml-var table_1>.uid\n
AND <dtml-var table_1>.base_category_uid = <dtml-var "portal_categories.use.getUid()">
]]></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -32,6 +32,7 @@
<key>predicate_category_category_strict_membership | predicate_category/category_strict_membership/z_related_predicate_category</key>
<key>predicate_category_category_uid | predicate_category/category_uid/z_related_predicate_category</key>
<key>predicate_uid | predicate/uid/z_related_predicate</key>
<key>related_resource_from_use_category_uid | category,category/category_uid/z_related_resource_from_use</key>
<key>resourceType | movement,catalog/portal_type/z_related_resource_from_movement</key>
<key>stock_function_category_strict_membership_uid | category/category_uid/z_related_strict_membership_function_uid_from_stock</key>
<key>stock_function_category_uid | category/category_uid/z_related_function_uid_from_stock</key>
......
218
\ No newline at end of file
219
\ No newline at end of file
......@@ -108,6 +108,7 @@ erp5_mysql_innodb/z_related_predicate
erp5_mysql_innodb/z_related_predicate_category
erp5_mysql_innodb/z_related_project_uid_from_stock
erp5_mysql_innodb/z_related_resource_from_movement
erp5_mysql_innodb/z_related_resource_from_use
erp5_mysql_innodb/z_related_resource_uid_from_item
erp5_mysql_innodb/z_related_resource_uid_from_stock
erp5_mysql_innodb/z_related_section_uid_from_item
......
......@@ -59,4 +59,5 @@ grand_parent_delivery_portal_type | category,catalog,catalog/portal_type/z_relat
grand_grand_grand_parent_delivery_portal_type | category,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_parent_delivery
grand_grand_grand_grand_parent_specialise_portal_type | category,catalog,catalog,catalog,catalog,catalog/portal_type/z_related_grand_grand_grand_grand_parent_specialise
grand_grand_grand_grand_parent_specialise_reference | category,catalog,catalog,catalog,catalog,catalog/reference/z_related_grand_grand_grand_grand_parent_specialise
children_reference | catalog/reference/z_related_children
\ No newline at end of file
children_reference | catalog/reference/z_related_children
related_resource_from_use_category_uid | category,category/category_uid/z_related_resource_from_use
\ No newline at end of file
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