diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_init.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_init.xml
index bbe0fea8b374ec75b01ab76d4bf8960d7053ed1e..0c5e8dd6f5d8adf5432e46530ff38cd6ed686e4f 100755
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_init.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_init.xml
@@ -68,6 +68,10 @@
             <key> <string>_body</string> </key>
             <value> <string>transaction = context\n
 \n
+if hasattr(context, \'startBuilding\') :\n
+  context.startBuilding()\n
+  context.updateCausalityState()\n
+\n
 transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
                        immediate_reindex=1)\n
 transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
@@ -78,21 +82,23 @@ context.AccountingTransaction_InitFromPreferences()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAUAAAAGAAAATwAA
-AHNSAAAAdAAAfQMAdAIAfAMAZAEAgwIAZAIAZAMAZAQAZAUAgwACAXQCAHwDAGQBAIMCAGQCAGQD
-AGQEAGQFAIMAAgF0AgB0AABkBgCDAgCDAAABZAAAUygHAAAATnMKAAAAbmV3Q29udGVudHMLAAAA
-cG9ydGFsX3R5cGVzGwAAAEFjY291bnRpbmcgVHJhbnNhY3Rpb24gTGluZXMRAAAAaW1tZWRpYXRl
-X3JlaW5kZXhpAQAAAHMpAAAAQWNjb3VudGluZ1RyYW5zYWN0aW9uX0luaXRGcm9tUHJlZmVyZW5j
-ZXMoAwAAAHMHAAAAY29udGV4dHMLAAAAdHJhbnNhY3Rpb25zCQAAAF9nZXRhdHRyXygFAAAAcwQA
-AABhcmdzcwIAAABrd3MHAAAAY29udGV4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AAHMPAAAAU2NyaXB0IChQeXRob24pcxoAAABBY2NvdW50aW5nVHJhbnNhY3Rp
+b25faW5pdAEAAABzDAAAAAYCEwEQARQCHAIcAygBAAAAcxoAAABBY2NvdW50aW5nVHJhbnNhY3Rp
+b25faW5pdCgBAAAAcxoAAABBY2NvdW50aW5nVHJhbnNhY3Rpb25faW5pdCgAAAAAKAAAAABzDwAA
+AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/nexedi/erp5_accounting/AccountingTransaction_init</string> </value>
+            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/AccountingTransaction_init</string> </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
@@ -126,6 +132,7 @@ dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
                             <string>kw</string>
                             <string>context</string>
                             <string>transaction</string>
+                            <string>hasattr</string>
                             <string>_getattr_</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_init.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_init.xml
index 3773d42ec6161ad3aff074ac1a4776b5b02f424a..4afa9ad5347be3b03f881d749248f59198d46352 100755
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_init.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PaymentTransaction_init.xml
@@ -68,6 +68,10 @@
             <key> <string>_body</string> </key>
             <value> <string>transaction = context\n
 \n
+if hasattr(context, \'startBuilding\') :\n
+  context.startBuilding()\n
+  context.updateCausalityState()\n
+\n
 transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
 #                       source=\'account/creance_client\',\n
                        id=\'receivable\',\n
@@ -89,23 +93,25 @@ context.AccountingTransaction_InitFromPreferences()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAUAAAAKAAAATwAA
-AHOSAAAAdAAAfQMAdAIAfAMAZAEAgwIAZAIAZAMAZAQAZAUAZAYAZAcAZAgAZAkAgwAEAXQCAHwD
-AGQBAIMCAGQCAGQDAGQEAGQKAGQGAGQHAGQIAGQJAIMABAF0AgB8AwBkAQCDAgBkAgBkAwBkBABk
-CwBkBgBkBwBkCABkCQCDAAQBdAIAdAAAZAwAgwIAgwAAAWQAAFMoDQAAAE5zCgAAAG5ld0NvbnRl
-bnRzCwAAAHBvcnRhbF90eXBlcxsAAABBY2NvdW50aW5nIFRyYW5zYWN0aW9uIExpbmVzAgAAAGlk
-cwoAAAByZWNlaXZhYmxlcwgAAABxdWFudGl0eWkAAAAAcxEAAABpbW1lZGlhdGVfcmVpbmRleGkB
-AAAAcwcAAABwYXlhYmxlcwQAAABiYW5rcykAAABBY2NvdW50aW5nVHJhbnNhY3Rpb25fSW5pdEZy
-b21QcmVmZXJlbmNlcygDAAAAcwcAAABjb250ZXh0cwsAAAB0cmFuc2FjdGlvbnMJAAAAX2dldGF0
-dHJfKAUAAABzBAAAAGFyZ3NzAgAAAGt3cwcAAABjb250ZXh0cwsAAAB0cmFuc2FjdGlvbnMJAAAA
-X2dldGF0dHJfKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcxcAAABQYXltZW50VHJhbnNh
-Y3Rpb25faW5pdAEAAABzCAAAAAkCKAUoBSgGKAEAAABzFwAAAFBheW1lbnRUcmFuc2FjdGlvbl9p
-bml0KAEAAABzFwAAAFBheW1lbnRUcmFuc2FjdGlvbl9pbml0KAAAAAAoAAAAAHMPAAAAU2NyaXB0
-IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
+            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAA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AABTY3JpcHQgKFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/nexedi/portal_skins/local_accounting/PaymentTransaction_init</string> </value>
+            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/PaymentTransaction_init</string> </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
@@ -139,6 +145,7 @@ IChQeXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
                             <string>kw</string>
                             <string>context</string>
                             <string>transaction</string>
+                            <string>hasattr</string>
                             <string>_getattr_</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init.xml
index 4aea7d3de3260b75949987f8f6b55465912b5d93..2382e5b0344c34bb4bad0bf7d24d4b41aa9cc128 100755
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init.xml
@@ -68,6 +68,10 @@
             <key> <string>_body</string> </key>
             <value> <string>transaction = context\n
 \n
+if hasattr(context, \'startBuilding\') :\n
+  context.startBuilding()\n
+  context.updateCausalityState()\n
+\n
 transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
 #                       source=\'account/services_exterieurs\',\n
                        id=\'expense\',\n
@@ -86,29 +90,30 @@ transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
 #                       id=\'collected_vat\',\n
 #                       immediate_reindex=1)\n
 \n
-\n
 context.AccountingTransaction_InitFromPreferences()\n
 </string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQA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</item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/nexedi/portal_skins/local_accounting/PurchaseInvoiceTransaction_init</string> </value>
+            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/PurchaseInvoiceTransaction_init</string> </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
@@ -142,6 +147,7 @@ dCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
                             <string>kw</string>
                             <string>context</string>
                             <string>transaction</string>
+                            <string>hasattr</string>
                             <string>_getattr_</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/SaleInvoiceTransaction_init.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/SaleInvoiceTransaction_init.xml
index df8bb83f2643f813680497f619552e23281a66ae..1c6beb481dee6c3d1b9200d109cfb5b5941a2441 100755
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/SaleInvoiceTransaction_init.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/SaleInvoiceTransaction_init.xml
@@ -68,6 +68,10 @@
             <key> <string>_body</string> </key>
             <value> <string>transaction = context\n
 \n
+if hasattr(context, \'startBuilding\') :\n
+  context.startBuilding()\n
+  context.updateCausalityState()\n
+\n
 transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
 #                       source=\'account/prestation_service\',\n
                        id=\'income\',\n
@@ -89,23 +93,26 @@ context.AccountingTransaction_InitFromPreferences()\n
         </item>
         <item>
             <key> <string>_code</string> </key>
-            <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAUAAAAKAAAATwAA
-AHOSAAAAdAAAfQMAdAIAfAMAZAEAgwIAZAIAZAMAZAQAZAUAZAYAZAcAZAgAZAkAgwAEAXQCAHwD
-AGQBAIMCAGQCAGQDAGQEAGQKA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KAGQLAIMABAF0AwB8AwBkAwCD
+AgBkBABkBQBkBgBkDABkCABkCQBkCgBkCwCDAAQBdAMAfAMAZAMAgwIAZAQAZAUAZAYAZA0AZAgA
+ZAkAZAoAZAsAgwAEAXQDAHQAAGQOAIMCAIMAAAFkAABTKA8AAABOcw0AAABzdGFydEJ1aWxkaW5n
+cxQAAAB1cGRhdGVDYXVzYWxpdHlTdGF0ZXMKAAAAbmV3Q29udGVudHMLAAAAcG9ydGFsX3R5cGVz
+HQAAAFNhbGUgSW52b2ljZSBUcmFuc2FjdGlvbiBMaW5lcwIAAABpZHMGAAAAaW5jb21lcwgAAABx
+dWFudGl0eWkAAAAAcxEAAABpbW1lZGlhdGVfcmVpbmRleGkBAAAAcwoAAAByZWNlaXZhYmxlcw0A
+AABjb2xsZWN0ZWRfdmF0cykAAABBY2NvdW50aW5nVHJhbnNhY3Rpb25fSW5pdEZyb21QcmVmZXJl
+bmNlcygEAAAAcwcAAABjb250ZXh0cwsAAAB0cmFuc2FjdGlvbnMHAAAAaGFzYXR0cnMJAAAAX2dl
+dGF0dHJfKAYAAABzBAAAAGFyZ3NzAgAAAGt3cwcAAABjb250ZXh0cwsAAAB0cmFuc2FjdGlvbnMH
+AAAAaGFzYXR0cnMJAAAAX2dldGF0dHJfKAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcxsA
+AABTYWxlSW52b2ljZVRyYW5zYWN0aW9uX2luaXQBAAAAcw4AAAAGAhMBEAEUAigFKAUoBigBAAAA
+cxsAAABTYWxlSW52b2ljZVRyYW5zYWN0aW9uX2luaXQoAQAAAHMbAAAAU2FsZUludm9pY2VUcmFu
+c2FjdGlvbl9pbml0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQeXRob24pcwgAAAA8bW9kdWxlPgEA
+AABzAAAAAA==</string> </value>
         </item>
         <item>
             <key> <string>_filepath</string> </key>
-            <value> <string>Script (Python):/nexedi/portal_skins/local_accounting/SaleInvoiceTransaction_init</string> </value>
+            <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/SaleInvoiceTransaction_init</string> </value>
         </item>
         <item>
             <key> <string>_params</string> </key>
@@ -139,6 +146,7 @@ dCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string
                             <string>kw</string>
                             <string>context</string>
                             <string>transaction</string>
+                            <string>hasattr</string>
                             <string>_getattr_</string>
                           </tuple>
                         </value>