From 1d1eedbd6f730e17f80eca705dba67e83c0c02ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 2 Nov 2007 17:08:20 +0000 Subject: [PATCH] Don't make check if the third party is member of the group, but is a Person git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17372 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../scripts/validateTransactionLines.xml | 13 ++++++------- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml index d1a6bd42c9..6e38327fe1 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.PythonScripts.PythonScript</string> - <string>PythonScript</string> - </tuple> - <none/> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> </tuple> </pickle> <pickle> @@ -96,8 +93,9 @@ if source_section is not None and destination_section is not None:\n destination_section_group = destination_section\\\n .getGroup(\'\').lstrip(\'group/\').split(\'/\')\n if destination_section_group and source_section_group and \\\n - destination_section_group[0] == source_section_group[0]:\n - check_for_destination = 1\n + destination_section_group[0] == source_section_group[0] \\\n + and destination_section.getPortalType() != \'Person\':\n + check_for_destination = 1\n \n source_sum = 0\n destination_sum = 0\n @@ -321,6 +319,7 @@ transaction.AccountingTransaction_deleteEmptyLines(redirect=0)\n <string>transaction_line</string> <string>source_quantity</string> <string>destination_quantity</string> + <string>_inplacevar_</string> <string>side</string> <string>account</string> <string>payment</string> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 941d0e591f..6efca19ea0 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -479 \ No newline at end of file +481 \ No newline at end of file -- 2.30.9