diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml index 4551a8daff707939b5f67961e6e11019266587cf..fc9710d548e3df05d805830a8233c301cfe341cb 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionLine_getNodeItemList.xml @@ -160,6 +160,9 @@ item_list = getItemList( category=category,\n if omit_filter:\n return item_list\n \n +if not hasattr(context, \'getSource\'):\n + return item_list\n +\n for node in (context.getSource(portal_type=\'Account\'),\n context.getDestination(portal_type=\'Account\')):\n if node:\n @@ -234,6 +237,7 @@ return item_list\n <string>getItemList</string> <string>str</string> <string>item_list</string> + <string>hasattr</string> <string>_getiter_</string> <string>node</string> <string>append</string> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index f0a7147fa36c03ba4f10e2dc7636d4204dfc94e0..45b1ccee2321964dc98e3f1141ca30e395bfff9f 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -740 \ No newline at end of file +741 \ No newline at end of file