[Erp5-report] r24861 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 11 13:28:12 CET 2008


Author: jerome
Date: Thu Dec 11 13:28:10 2008
New Revision: 24861

URL: http://svn.erp5.org?rev=24861&view=rev
Log:
use tag, activate_kw and after_tag so that updateCausalityState is done after build

Modified:
    erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml?rev=24861&r1=24860&r2=24861&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/Delivery_Build.xml [utf8] Thu Dec 11 13:28:10 2008
@@ -103,20 +103,22 @@
   ### End of kev patch\n
 \n
 \n
-  # FIXME after_method_id is not enough here.\n
-\n
   # build accounting lines\n
   method_id_list = (\'expand\', \'edit\', \'updateAppliedRule\', \'Delivery_updateAppliedRule\',\n
-      \'immediateReindexObject\', \'recursiveImmediateReindexObject\')\n
+                    \'immediateReindexObject\', \'recursiveImmediateReindexObject\')\n
+\n
+  tag = \'invoice_transaction_build_%s\' % delivery.getRelativeUrl()\n
   builder.activate(\n
-      after_method_id=method_id_list).build()\n
+      after_method_id=method_id_list,\n
+      tag=tag,\n
+      activate_kw=dict(tag=tag)).build(activate_kw=dict(tag=tag))\n
 \n
   # build related payment transactions\n
   portal_deliveries.payment_transaction_builder.activate(after_method_id=method_id_list).build()\n
 \n
   # set the object in building state.\n
   delivery.startBuilding()\n
-  delivery.activate( after_path_and_method_id = (builder.getPath(), [\'build\']) ).updateCausalityState()\n
+  delivery.activate(after_tag=tag).updateCausalityState()\n
 </string> </value>
         </item>
         <item>
@@ -171,6 +173,8 @@
                             <string>expand_tag</string>
                             <string>activate_kw</string>
                             <string>method_id_list</string>
+                            <string>tag</string>
+                            <string>dict</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=24861&r1=24860&r2=24861&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu Dec 11 13:28:10 2008
@@ -1,1 +1,1 @@
-829
+830




More information about the Erp5-report mailing list