Commit 532e9a72 authored by Jérome Perrin's avatar Jérome Perrin

if account_id is passed explitly, don't check the account's account_type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17187 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77001a5d
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -150,8 +147,9 @@ for is_source, line in getIsSourceMovementItemList(context):\n
if at_date is None and line.getGroupingReference():\n
continue\n
\n
if node_value is not None and \\\n
node_value.getAccountTypeId() in (\'payable\', \'receivable\'):\n
if node_value is not None and (\n
node_value.getAccountTypeId() in (\'payable\', \'receivable\')\n
or (account_id is not None and node_value.getId() in account_id)):\n
if account_id is not None and node_value.getId() not in account_id:\n
continue\n
key = (node_value.getRelativeUrl(), mirror_section)\n
......@@ -318,6 +316,7 @@ else:\n
<string>date</string>
<string>total_amount</string>
<string>node</string>
<string>_inplacevar_</string>
<string>sum</string>
</tuple>
</value>
......
445
\ No newline at end of file
446
\ 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