Commit 5aa5642a authored by Jérome Perrin's avatar Jérome Perrin

use proper tag / after tags for automatic grouping / ungrouping

This fixes random failures of test_automatically_setting_grouping_reference_same_group and test_automatically_unsetting_grouping_reference_when_cancelling

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3bed1d3
...@@ -155,6 +155,7 @@ for (node, section, mirror_section), line_info_list in lines_per_node.items():\n ...@@ -155,6 +155,7 @@ for (node, section, mirror_section), line_info_list in lines_per_node.items():\n
for line in line_info_list:\n for line in line_info_list:\n
line_obj = portal.restrictedTraverse(line[\'path\'])\n line_obj = portal.restrictedTraverse(line[\'path\'])\n
line_obj.setGroupingReference(string_reference)\n line_obj.setGroupingReference(string_reference)\n
line_obj.reindexObject(activate_kw=dict(tag=\'accounting_grouping_reference\'))\n
changed_lines.append(line[\'path\'])\n changed_lines.append(line[\'path\'])\n
\n \n
return changed_lines\n return changed_lines\n
......
...@@ -59,9 +59,8 @@ transaction = sci[\'object\']\n ...@@ -59,9 +59,8 @@ transaction = sci[\'object\']\n
for line in transaction.getMovementList(\n for line in transaction.getMovementList(\n
portal_type=sci.getPortal().getPortalAccountingMovementTypeList()):\n portal_type=sci.getPortal().getPortalAccountingMovementTypeList()):\n
if line.getGroupingReference():\n if line.getGroupingReference():\n
line.activate(after_path_and_method_id=(\n line.activate(\n
(transaction.getPath(), (\'recursiveImmediateReindexObject\', \'immediateReindexObject\')),\n after_tag=\'accounting_grouping_reference\'\n
(line.getPath(), (\'recursiveImmediateReindexObject\', \'immediateReindexObject\')),),\n
).AccountingTransactionLine_resetGroupingReference()\n ).AccountingTransactionLine_resetGroupingReference()\n
</string> </value> </string> </value>
</item> </item>
......
1067 1069
\ 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