Commit d6a9a3ac authored by Jérome Perrin's avatar Jérome Perrin

2010-05-24 Jérome

* Allow to select multiple accounts root in General Ledger and Trial Balance

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35557 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bdfa6398
...@@ -70,10 +70,11 @@ section_uid = context.Base_getSectionUidListForSectionCategory(\n ...@@ -70,10 +70,11 @@ section_uid = context.Base_getSectionUidListForSectionCategory(\n
section_category, request[\'section_category_strict\'])\n section_category, request[\'section_category_strict\'])\n
simulation_state = request[\'simulation_state\']\n simulation_state = request[\'simulation_state\']\n
from_date = request.get(\'from_date\', None)\n from_date = request.get(\'from_date\', None)\n
gap = request.get(\'gap\', None)\n gap_list = []\n
# XXX the field should maybe use base=1 on the category...\n for gap in request.get(\'gap_list\', ()):\n
if gap:\n # XXX the field should maybe use base=1 on the category...\n
gap = \'gap/%s\' % gap\n gap_list.append(\'gap/%s\' % gap)\n
\n
display_categories = request.get(\'display_categories\', False)\n display_categories = request.get(\'display_categories\', False)\n
period_start_date = context\\\n period_start_date = context\\\n
.Base_getAccountingPeriodStartDateForSectionCategory(\n .Base_getAccountingPeriodStartDateForSectionCategory(\n
...@@ -182,8 +183,8 @@ account_type_to_group_by_mirror_section = [\n ...@@ -182,8 +183,8 @@ account_type_to_group_by_mirror_section = [\n
\'account_type/liability/payable\', ]\n \'account_type/liability/payable\', ]\n
\n \n
\n \n
if gap or gap_root:\n if gap_list or gap_root:\n
params[\'node_category\'] = gap or gap_root\n params[\'node_category\'] = gap_list or gap_root\n
\n \n
report_section_list = []\n report_section_list = []\n
\n \n
...@@ -493,6 +494,8 @@ return report_section_list\n ...@@ -493,6 +494,8 @@ return report_section_list\n
<string>simulation_state</string> <string>simulation_state</string>
<string>None</string> <string>None</string>
<string>from_date</string> <string>from_date</string>
<string>gap_list</string>
<string>_getiter_</string>
<string>gap</string> <string>gap</string>
<string>False</string> <string>False</string>
<string>display_categories</string> <string>display_categories</string>
...@@ -515,7 +518,6 @@ return report_section_list\n ...@@ -515,7 +518,6 @@ return report_section_list\n
<string>getFullAccountName</string> <string>getFullAccountName</string>
<string>account_type_to_group_by_node</string> <string>account_type_to_group_by_node</string>
<string>profit_and_loss_account_type</string> <string>profit_and_loss_account_type</string>
<string>_getiter_</string>
<string>account_type_value</string> <string>account_type_value</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
......
...@@ -91,11 +91,13 @@ request.set(\'precision\', precision)\n ...@@ -91,11 +91,13 @@ request.set(\'precision\', precision)\n
\n \n
# optional GAP filter\n # optional GAP filter\n
node_uid = []\n node_uid = []\n
gap = request.get(\'gap\', None)\n gap_uid_list = []\n
if gap:\n for gap in request.get(\'gap_list\', ()):\n
gap_value = portal.portal_categories.gap.restrictedTraverse(gap)\n gap_uid_list.append(portal.portal_categories.gap.restrictedTraverse(gap).getUid())\n
node_uid = [x.uid for x in gap_value.getCategoryMemberValueList(\n if gap_uid_list:\n
portal_type=\'Account\')] or -1\n node_uid = [x.uid for x in portal.portal_catalog(\n
portal_type=\'Account\',\n
default_gap_uid=gap_uid_list)] or -1\n
\n \n
request.set(\'is_accounting_report\', True)\n request.set(\'is_accounting_report\', True)\n
\n \n
...@@ -186,11 +188,11 @@ return [ ReportSection(\n ...@@ -186,11 +188,11 @@ return [ ReportSection(\n
<string>currency</string> <string>currency</string>
<string>precision</string> <string>precision</string>
<string>node_uid</string> <string>node_uid</string>
<string>gap_uid_list</string>
<string>_getiter_</string>
<string>gap</string> <string>gap</string>
<string>gap_value</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string>
<string>x</string> <string>x</string>
<string>True</string> <string>True</string>
<string>dict</string> <string>dict</string>
......
...@@ -91,11 +91,11 @@ ...@@ -91,11 +91,11 @@
<string>your_portal_type</string> <string>your_portal_type</string>
<string>your_at_date</string> <string>your_at_date</string>
<string>your_from_date</string> <string>your_from_date</string>
<string>your_gap</string>
<string>your_gap_root</string> <string>your_gap_root</string>
<string>your_function</string> <string>your_function</string>
<string>your_project</string> <string>your_project</string>
<string>your_section_category_strict</string> <string>your_section_category_strict</string>
<string>your_gap_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/> <global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/> <tuple/>
</tuple> </tuple>
</pickle> </pickle>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_gap</string> </value> <value> <string>your_gap_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -72,10 +72,6 @@ ...@@ -72,10 +72,6 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -101,7 +97,7 @@ ...@@ -101,7 +97,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>view_separator</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -147,10 +143,6 @@ ...@@ -147,10 +143,6 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -178,7 +170,7 @@ ...@@ -178,7 +170,7 @@
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>view_separator</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -198,7 +190,9 @@ ...@@ -198,7 +190,9 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value>
<list/>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -224,10 +218,6 @@ ...@@ -224,10 +218,6 @@
<key> <string>extra_item</string> </key> <key> <string>extra_item</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>first_item</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -244,7 +234,7 @@ ...@@ -244,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>1</int> </value> <value> <int>5</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -255,8 +245,12 @@ ...@@ -255,8 +245,12 @@
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>whitespace_preserve</string> </key> <key> <string>view_separator</string> </key>
<value> <int>0</int> </value> <value> <string encoding="cdata"><![CDATA[
<br />
]]></string> </value>
</item> </item>
</dictionary> </dictionary>
</value> </value>
...@@ -275,7 +269,7 @@ ...@@ -275,7 +269,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.Account_getGapItemList()</string> </value> <value> <string>context/Account_getGapItemList</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list> <list>
<string>your_gap</string> <string>your_gap_list</string>
<string>your_gap_root</string> <string>your_gap_root</string>
</list> </list>
</value> </value>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_gap</string> </value> <value> <string>your_gap_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_gap</string> </value> <value> <string>your_gap_list</string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list> <list>
<string>your_gap</string> <string>your_gap_list</string>
<string>your_gap_root</string> <string>your_gap_root</string>
</list> </list>
</value> </value>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>your_gap</string> </value> <value> <string>your_gap_list</string> </value>
</item> </item>
<item> <item>
<key> <string>message_values</string> </key> <key> <string>message_values</string> </key>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>your_gap</string> </value> <value> <string>your_gap_list</string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
......
2010-05-24 Jérome
* Allow to select multiple accounts root in General Ledger and Trial Balance
2010-05-24 kazuhiko 2010-05-24 kazuhiko
* Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'}) * Improve activity dependencies for Delivery_updateAppliedRule, eg. delivery.activate(tag='(path)_updateAppliedRule', after_tag='(path)_expand').Delivery_updateAppliedRule(activate_kw={'tag':'(path)_expand'})
......
1214 1218
\ No newline at end of file \ 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