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

use getPortalPaymentNodeTypeList instead of hardcoding portal types.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10863 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d67d17e7
......@@ -73,9 +73,10 @@
\n
item_list = [[\'\', \'\']]\n
\n
organisation = context.getDestinationSectionValue()\n
if organisation is not None:\n
bank_account_list = organisation.contentValues(filter={\'portal_type\': [\'Bank Account\', \'Cash Register\', \'Credit Card\']})\n
entity = context.getDestinationSectionValue()\n
if entity is not None:\n
bank_account_list = entity.contentValues(filter={\'portal_type\':\n
entity.getPortalPaymentNodeTypeList()})\n
for bank_account in bank_account_list:\n
url = bank_account.getRelativeUrl()\n
#label = bank_account.getIban()\n
......@@ -92,6 +93,12 @@ return item_list\n
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
......@@ -130,7 +137,7 @@ return item_list\n
<string>item_list</string>
<string>_getattr_</string>
<string>context</string>
<string>organisation</string>
<string>entity</string>
<string>None</string>
<string>bank_account_list</string>
<string>_getiter_</string>
......@@ -164,4 +171,25 @@ return item_list\n
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -73,9 +73,10 @@
\n
item_list = [[\'\', \'\']]\n
\n
organisation = context.getSourceSectionValue()\n
if organisation is not None:\n
bank_account_list = organisation.contentValues(filter={\'portal_type\': [\'Bank Account\', \'Cash Register\', \'Credit Card\']})\n
entity = context.getSourceSectionValue()\n
if entity is not None:\n
bank_account_list = entity.contentValues(filter={\'portal_type\':\n
entity.getPortalPaymentNodeTypeList()})\n
for bank_account in bank_account_list:\n
url = bank_account.getRelativeUrl()\n
label = bank_account.getReference() or bank_account.getTitle()\n
......@@ -91,6 +92,12 @@ return item_list\n
<none/>
</value>
</item>
<item>
<key> <string>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
......@@ -129,7 +136,7 @@ return item_list\n
<string>item_list</string>
<string>_getattr_</string>
<string>context</string>
<string>organisation</string>
<string>entity</string>
<string>None</string>
<string>bank_account_list</string>
<string>_getiter_</string>
......@@ -163,4 +170,25 @@ return item_list\n
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
93
\ No newline at end of file
94
\ 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