[Erp5-report] r42309 jerome - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_s...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jan 13 17:21:52 CET 2011


Author: jerome
Date: Thu Jan 13 17:21:51 2011
New Revision: 42309

URL: http://svn.erp5.org?rev=42309&view=rev
Log:
when an accounting transaction is cloned, don't copy solver and initialize causality state

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml?rev=42309&r1=42308&r2=42309&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml [utf8] Thu Jan 13 17:21:51 2011
@@ -50,11 +50,17 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>"""Reset references on copied transactions.\n
+            <value> <string>"""Reset references on copied transactions and initialize causality workflow.\n
 """\n
 context.setSourceReference(None)\n
 context.setReference(None)\n
 context.setDestinationReference(None)\n
+context.setSolver(None)\n
+\n
+# Initialize Causality Workflow\n
+if hasattr(context, \'startBuilding\'):\n
+  context.startBuilding()\n
+  context.calculateCausalityState()\n
 </string> </value>
         </item>
         <item>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=42309&r1=42308&r2=42309&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu Jan 13 17:21:51 2011
@@ -1 +1 @@
-1429
\ No newline at end of file
+1430
\ No newline at end of file



More information about the Erp5-report mailing list