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