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 7d3b47a7708876c6a40d1d5562a0692481ea3ba7..1051adeb034c4fc8b6970139d5ccab44ba2be61c 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 @@ -98,13 +98,13 @@ for line in transaction.contentValues(filter=dict(\n mapping=dict(third_party_name=unicode(\n third_party.getTitle(), \'utf8\')))\n \n - if bank_account is not None and\\\n - bank_account.getValidationState() in invalid_state_list:\n - raise ValidationFailed, translateString(\n - "Bank Account ${bank_account_reference} is invalid.",\n - mapping=dict(bank_account_reference=unicode(\n - bank_account.getReference(), \'utf8\')))\n -\n + if bank_account is not None:\n + if bank_account.getValidationState() in invalid_state_list:\n + raise ValidationFailed, translateString(\n + "Bank Account ${bank_account_reference} is invalid.",\n + mapping=dict(bank_account_reference=unicode(\n + bank_account.getReference(), \'utf8\')))\n + \n if account is not None:\n # also check that currencies are consistent if we use this quantity for\n # accounting.\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 09486914e57caa04c3b4f5fccc912d3fe2aa2a9d..ed426f7f6f3e897e6ed1be653ea746babdbf44a9 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1155 \ No newline at end of file +1156 \ No newline at end of file