diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkTransactionsState.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkTransactionsState.xml
index d868e4dca10b595c0fbf3deb9a3c0e2bc67ab5f7..9e676ae9d43f68dc8e1016b2198e75708d9a6f5d 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkTransactionsState.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/checkTransactionsState.xml
@@ -67,8 +67,6 @@
             <key> <string>_body</string> </key>
             <value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
 from Products.ERP5Type.Message import Message\n
-from Products.ZSQLCatalog.SQLCatalog import Query\n
-from Products.ZSQLCatalog.SQLCatalog import ComplexQuery\n
 \n
 period = state_change[\'object\']\n
 portal = period.getPortalObject()\n
@@ -138,9 +136,6 @@ if movement_list:\n
                             <string>ValidationFailed</string>
                             <string>Products.ERP5Type.Message</string>
                             <string>Message</string>
-                            <string>Products.ZSQLCatalog.SQLCatalog</string>
-                            <string>Query</string>
-                            <string>ComplexQuery</string>
                             <string>_getitem_</string>
                             <string>period</string>
                             <string>_getattr_</string>
diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/createBalanceTransaction.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/createBalanceTransaction.xml
index fe7d4491a334296d82ccc6697de7f80713ea560d..fc39c548e38061f359fc544e399388dda048ee41 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/createBalanceTransaction.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_period_workflow/scripts/createBalanceTransaction.xml
@@ -67,8 +67,6 @@
             <key> <string>_body</string> </key>
             <value> <string>"""Create a balance transaction\n
 """\n
-from DateTime import DateTime\n
-\n
 accounting_period = sci[\'object\']\n
 portal = accounting_period.getPortalObject()\n
 profit_and_loss_account = portal.portal_workflow.getInfoFor(\n
@@ -125,7 +123,6 @@ accounting_period.AccountingPeriod_createBalanceTransaction(\n
                         <value>
                           <tuple>
                             <string>sci</string>
-                            <string>DateTime</string>
                             <string>_getitem_</string>
                             <string>accounting_period</string>
                             <string>_getattr_</string>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 1fc188de736ba90607732689cd9ae879e4947184..3c2af958d84db22af9269241a467564444f7265e 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-525
\ No newline at end of file
+526
\ No newline at end of file