diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml index b0ae1f802f04a5c5db66339369f6de49471f230e..b4b6a583ff5a5004660597f2678a30bd2d9e21f2 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_afterClone.xml @@ -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> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index dfde4f32720bb2d20288d6b5caa1ce76532dd52c..96047da228cdc038d61c9eec447f7737caf8b17b 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1429 \ No newline at end of file +1430 \ No newline at end of file