diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.xml index e0650fc411898beca3877ba09ef3325fe6080752..ee02b51fd344d3d5ad4fb69e9e5d1fa32351494c 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getProjectItemList.xml @@ -61,7 +61,7 @@ portal = context.getPortalObject()\n # case 1: script is used for reports, we display all validated projects.\n if context.getPortalType() == \'Accounting Transaction Module\':\n project_list = []\n - for project in portal.project_module.searchFolder(\n + for project in portal.portal_catalog(\n portal_type=\'Project\',\n select_list=[\'relative_url\', \'title\'],\n validation_state=(\'validated\',),\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 466fe4026fa09e395d006055c125f9aa7b5a42a6..d10f97d902701e682f4e8e2bdff169e5a81b1756 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1548 \ No newline at end of file +1549 \ No newline at end of file