Commit 1d1eedbd authored by Jérome Perrin's avatar Jérome Perrin

Don't make check if the third party is member of the group, but is a Person

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17372 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae4be841
......@@ -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>
......@@ -96,8 +93,9 @@ if source_section is not None and destination_section is not None:\n
destination_section_group = destination_section\\\n
.getGroup(\'\').lstrip(\'group/\').split(\'/\')\n
if destination_section_group and source_section_group and \\\n
destination_section_group[0] == source_section_group[0]:\n
check_for_destination = 1\n
destination_section_group[0] == source_section_group[0] \\\n
and destination_section.getPortalType() != \'Person\':\n
check_for_destination = 1\n
\n
source_sum = 0\n
destination_sum = 0\n
......@@ -321,6 +319,7 @@ transaction.AccountingTransaction_deleteEmptyLines(redirect=0)\n
<string>transaction_line</string>
<string>source_quantity</string>
<string>destination_quantity</string>
<string>_inplacevar_</string>
<string>side</string>
<string>account</string>
<string>payment</string>
......
479
\ No newline at end of file
481
\ 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