From 31e40bc3face3733b2da4e1a62900983b7e3319a Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Thu, 19 Jan 2006 19:04:01 +0000 Subject: [PATCH] (modif by seb) Categories can be used as source_section or destination_section git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5194 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../accounting_workflow/scripts/validateTransaction.xml | 2 +- .../accounting_workflow/scripts/validateTransactionLines.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml index 38f25ad87d..aa8f5079ef 100755 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml @@ -98,7 +98,7 @@ else: \n error_message = "Date is not in an openned Accounting Period" \n \n # Get sections and a currency.\n -source_section = transaction.getSourceSection(portal_type = [\'Organisation\'])\n +source_section = transaction.getSourceSection(portal_type = [\'Organisation\',\'Category\'])\n destination_section = transaction.getDestinationSection(portal_type = [\'Organisation\', \'Person\'])\n currency = transaction.getResource()\n \n 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 0c1b12e4c4..ec538b389a 100755 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml @@ -78,8 +78,8 @@ N_ = transaction.Base_TranslateString\n container.validateTransaction(state_change)\n \n # Get sections.\n -source_section = transaction.getSourceSection(portal_type = [\'Person\', \'Organisation\'])\n -destination_section = transaction.getDestinationSection(portal_type = [\'Person\', \'Organisation\'])\n +source_section = transaction.getSourceSection(portal_type = [\'Person\', \'Organisation\',\'Category\'])\n +destination_section = transaction.getDestinationSection(portal_type = [\'Person\', \'Organisation\',\'Category\'])\n \n # Check transaction lines.\n if transaction.getPortalType() not in (\'Balance Transaction\',) :\n -- 2.30.9