diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml
index 93f96e06f2190ac0e2404ac15655e18e80311abc..bcf01eef283dfaa28e0aadd454e8aa8ae64942e1 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_workflow/scripts/PackingList_buildInvoice.xml
@@ -74,7 +74,7 @@ packing_list = sci.object\n
 delivery_tool = sci.getPortal().portal_deliveries\n
 LOG("Task Report : %s"%packing_list.getPath())\n
 \n
-if sci.getPortal().getDefaultModule(\'Accounting Module\') is not None:\n
+if hasattr(sci.getPortal(), \'accounting_module\'):\n
   if hasattr(delivery_tool, \'task_invoice_builder\'):\n
     delivery_tool.task_invoice_builder.activate(\n
           after_method_id = [ \'expand\', \n
@@ -132,7 +132,6 @@ if sci.getPortal().getDefaultModule(\'Accounting Module\') is not None:\n
                             <string>_getattr_</string>
                             <string>packing_list</string>
                             <string>delivery_tool</string>
-                            <string>None</string>
                             <string>hasattr</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision
index cbd6012bc6f6c4ceb791c8b2ae7ff8d5978d3875..4c009fb2fb4ac259990d1c18054f58bfd246f37f 100644
--- a/bt5/erp5_project/bt/revision
+++ b/bt5/erp5_project/bt/revision
@@ -1 +1 @@
-204
\ No newline at end of file
+206
\ No newline at end of file