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

fix incomplete variable renaming

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25380 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11d7cac7
......@@ -77,10 +77,10 @@ if len(resources_keys.keys()) == 1 :\n
# the lines. \n
for line in context.contentValues(portal_type=accounting_line_portal_type):\n
line.setResource(None)\n
assert(line.getResource() == sale_invoice.getResource())\n
assert(line.getResource() == context.getResource())\n
else :\n
raise ValueError, "%s doesn\'t have only one resource %s" % (\n
sale_invoice.getPath(), resources_keys.keys())\n
context.getPath(), resources_keys.keys())\n
\n
# round debit / credit on created transaction.\n
context.AccountingTransaction_roundDebitCredit()\n
......@@ -131,7 +131,6 @@ context.AccountingTransaction_roundDebitCredit()\n
<string>len</string>
<string>_getitem_</string>
<string>None</string>
<string>sale_invoice</string>
<string>AssertionError</string>
<string>ValueError</string>
</tuple>
......
193
\ No newline at end of file
194
\ 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