Commit 4f28abf8 authored by Jérome Perrin's avatar Jérome Perrin

Support the cases when AccountingTransactionLine_getNodeItemList is not called on a movement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3c061e2
......@@ -160,6 +160,9 @@ item_list = getItemList( category=category,\n
if omit_filter:\n
return item_list\n
\n
if not hasattr(context, \'getSource\'):\n
return item_list\n
\n
for node in (context.getSource(portal_type=\'Account\'),\n
context.getDestination(portal_type=\'Account\')):\n
if node:\n
......@@ -234,6 +237,7 @@ return item_list\n
<string>getItemList</string>
<string>str</string>
<string>item_list</string>
<string>hasattr</string>
<string>_getiter_</string>
<string>node</string>
<string>append</string>
......
740
\ No newline at end of file
741
\ 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