Commit 9595b648 authored by Jérome Perrin's avatar Jérome Perrin

don't use movement relative_urls as keys, to be compatible with temp orders

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24182 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1a40d4b
......@@ -82,9 +82,9 @@ for tax_line in sorted(\n
for base_contribution in movement.getBaseContributionList():\n
# XXX non optimal loops, may needs optimisation\n
if base_contribution == base_application:\n
applicable_movement_list[movement.getRelativeUrl()] = 1\n
applicable_movement_list[id(movement)] = movement\n
\n
for movement in [portal.restrictedTraverse(x) for x in applicable_movement_list.keys()]:\n
for movement in applicable_movement_list.values():\n
movement_price = movement.getTotalPrice(fast=0) or 0\n
if tax_line.getProperty(\'calculation_script_id\'):\n
raise NotImplementedError\n
......@@ -156,7 +156,7 @@ for tax_line in sorted(\n
<string>base_contribution_list</string>
<string>base_contribution</string>
<string>_write_</string>
<string>x</string>
<string>id</string>
<string>movement_price</string>
<string>NotImplementedError</string>
<string>base_amount</string>
......
507
\ No newline at end of file
508
\ 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