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 38f25ad87d934215e9b092c34080cb6f971acfa6..aa8f5079efa29358ad001df535424887c77e27f3 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 0c1b12e4c4efe2e2d2e56cefa50ab0cb051f9e08..ec538b389a8f34cdd0bac77579f5f989a778888d 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