Commit 6c8892ee authored by Kevin Deldycke's avatar Kevin Deldycke

Add section_portal_type_list parameter to Resource_zGetInventory. This...

Add section_portal_type_list parameter to Resource_zGetInventory. This addition is here to help us break acquisition of 'group' property from Person to Organisation. The latter behaviour break accounting calculations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6394 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfc38ebc
......@@ -101,6 +101,17 @@
</dictionary>
</value>
</item>
<item>
<key> <string>section_portal_type_list</string> </key>
<value>
<dictionary>
<item>
<key> <string>type</string> </key>
<value> <string>list</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>selection_domain</string> </key>
<value>
......@@ -137,6 +148,7 @@
<string>order_by_expression</string>
<string>selection_domain</string>
<string>selection_report</string>
<string>section_portal_type_list</string>
<string>ignore_variation</string>
<string>standardize</string>
<string>omit_simulation</string>
......@@ -160,6 +172,7 @@ where_expression\r\n
order_by_expression\r\n
selection_domain\r\n
selection_report\r\n
section_portal_type_list:list\r\n
ignore_variation\r\n
standardize\r\n
omit_simulation\r\n
......@@ -269,6 +282,15 @@ XXX How to deal with standardize ?\n
<dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n
</dtml-if>\n
\n
<dtml-comment>\n
This addition is here to help us break acquisition of \'group\' property from Person to Organisation.\n
The latter behaviour break accounting calculations.\n
</dtml-comment>\n
<dtml-if section_portal_type_list>\n
AND (<dtml-in section_portal_type_list>section.portal_type = \'<dtml-var sequence-item>\'<dtml-unless sequence-end> OR </dtml-unless></dtml-in>)\n
</dtml-if>\n
\n
<dtml-if group_by_expression>\n
GROUP BY <dtml-var group_by_expression>\n
</dtml-if>\n
......@@ -403,6 +425,15 @@ XXX How to deal with standardize ?\n
<dtml-if selection_report>\n
AND <dtml-var "selection_report.asSqlExpression(strict_membership=1)">\n
</dtml-if>\n
\n
<dtml-comment>\n
This addition is here to help us break acquisition of \'group\' property from Person to Organisation.\n
The latter behaviour break accounting calculations.\n
</dtml-comment>\n
<dtml-if section_portal_type_list>\n
AND (<dtml-in section_portal_type_list>section.portal_type = \'<dtml-var sequence-item>\'<dtml-unless sequence-end> OR </dtml-unless></dtml-in>)\n
</dtml-if>\n
\n
<dtml-if group_by_expression>\n
GROUP BY <dtml-var group_by_expression>\n
</dtml-if>\n
......
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