Commit 54584e79 authored by Jérome Perrin's avatar Jérome Perrin

use portal method to get payment node types


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 243ec4ee
......@@ -177,9 +177,7 @@ def expandBankAccountsForAccount(account, **kw) :\n
orga_and_banks = []\n
for orga in organisation_list :\n
orga_and_banks += [(orga, o.getObject()) for o in \\\n
orga.searchFolder(portal_type=[ \'Bank Account\',\n
\'Cash Register\',\n
\'Credit Card\'])]\n
orga.searchFolder(portal_type=context.getPortalPaymentNodeTypeList())]\n
for orga ,bank in orga_and_banks :\n
this_tmp_account = {\n
\'uid\' : account.getUid(),\n
......@@ -333,7 +331,7 @@ return report_items\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/erp5/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance</string> </value>
<value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/AccountModule_getAccountListForTrialBalance</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
......
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