From ec48ecb5cc7af2170ad2aa8862e235ced9be55e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 22 Feb 2006 15:18:02 +0000
Subject: [PATCH] rename AccountingTransaction_InitFromPreferences in
 AccountingTransaction_initFromPreferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5785 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...xml => AccountingTransaction_initFromPreferences.xml} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
 rename bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/{AccountingTransaction_InitFromPreferences.xml => AccountingTransaction_initFromPreferences.xml} (94%)

diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_InitFromPreferences.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_initFromPreferences.xml
similarity index 94%
rename from bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_InitFromPreferences.xml
rename to bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_initFromPreferences.xml
index f5ece003fc..97e6a046d9 100755
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_InitFromPreferences.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_initFromPreferences.xml
@@ -77,6 +77,10 @@ try : \n
     resource = preference_tool.getPreferredAccountingTransactionCurrency())\n
 except AttributeError, e :\n
   context.log(\'AccountingTransaction_InitFromPreferences\', \'error : %s\' % e)\n
+\n
+if hasattr(context, \'startBuilding\') :\n
+  context.startBuilding()\n
+  context.updateCausalityState()\n
 </string> </value>
         </item>
         <item>
@@ -87,7 +91,7 @@ except AttributeError, e :\n
         </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/AccountingTransaction_InitFromPreferences</string> </value>
+            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/AccountingTransaction_initFromPreferences</string> </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
@@ -127,6 +131,7 @@ except AttributeError, e :\n
                             <string>_getattr_</string>
                             <string>AttributeError</string>
                             <string>e</string>
+                            <string>hasattr</string>
                           </tuple>
                         </value>
                     </item>
@@ -143,7 +148,7 @@ except AttributeError, e :\n
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>AccountingTransaction_InitFromPreferences</string> </value>
+            <value> <string>AccountingTransaction_initFromPreferences</string> </value>
         </item>
         <item>
             <key> <string>warnings</string> </key>
-- 
2.30.9