From ce43a1d7f01fbed7a6eac8ab725f5e7205239368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 12 Nov 2010 14:03:12 +0000 Subject: [PATCH] only show validated organisations git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40240 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../AccountingTransaction_getDestinationSectionItemList.xml | 3 ++- .../AccountingTransaction_getSourceSectionItemList.xml | 3 ++- bt5/erp5_accounting/bt/revision | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getDestinationSectionItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getDestinationSectionItemList.xml index 0d2cec2e63..36f61616da 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getDestinationSectionItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getDestinationSectionItemList.xml @@ -50,7 +50,8 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>section_item_list = context.Base_getPreferredSectionItemList(portal_type=\'Organisation\')\n + <value> <string>section_item_list = context.Base_getPreferredSectionItemList(\n + portal_type=\'Organisation\', validation_state=\'validated\')\n current_destination_section = context.getDestinationSection()\n if current_destination_section is not None and\\\n current_destination_section not in zip(*section_item_list)[1]:\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml index 9b7695ac6f..29487db576 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getSourceSectionItemList.xml @@ -50,7 +50,8 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>section_item_list = context.Base_getPreferredSectionItemList(portal_type=\'Organisation\')\n + <value> <string>section_item_list = context.Base_getPreferredSectionItemList(\n + portal_type=\'Organisation\', validation_state=\'validated\')\n current_source_section = context.getSourceSection()\n if current_source_section is not None and\\\n current_source_section not in zip(*section_item_list)[1]:\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 5e2cf217f8..62713742b7 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1388 \ No newline at end of file +1390 \ No newline at end of file -- 2.30.9