Commit 9612f26c authored by Jérome Perrin's avatar Jérome Perrin

Don't add lines when created from delivery builder.

Don't reindex objects immediatly on creation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5786 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec48ecb5
...@@ -68,16 +68,13 @@ ...@@ -68,16 +68,13 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = context\n <value> <string>transaction = context\n
\n \n
if hasattr(context, \'startBuilding\') :\n if kw.get(\'created_by_builder\', 0): \n
context.startBuilding()\n return\n
context.updateCausalityState()\n
\n \n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n transaction.newContent(portal_type=\'Accounting Transaction Line\', )\n
immediate_reindex=1)\n transaction.newContent(portal_type=\'Accounting Transaction Line\', )\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
immediate_reindex=1)\n
\n \n
context.AccountingTransaction_InitFromPreferences()\n context.AccountingTransaction_initFromPreferences()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -122,7 +119,6 @@ context.AccountingTransaction_InitFromPreferences()\n ...@@ -122,7 +119,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string> <string>kw</string>
<string>context</string> <string>context</string>
<string>transaction</string> <string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -68,27 +68,17 @@ ...@@ -68,27 +68,17 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = context\n <value> <string>transaction = context\n
\n \n
if hasattr(context, \'startBuilding\') :\n if kw.get(\'created_by_builder\', 0): \n
context.startBuilding()\n return\n
context.updateCausalityState()\n
\n \n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/creance_client\',\n id=\'receivable\', )\n
id=\'receivable\',\n
quantity=0,\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/dette_fournisseur\',\n id=\'payable\', )\n
id=\'payable\',\n
quantity=0,\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/banques_etablissements_financiers\',\n id=\'bank\', )\n
id=\'bank\',\n
quantity=0,\n
immediate_reindex=1)\n
\n \n
context.AccountingTransaction_InitFromPreferences()\n context.AccountingTransaction_initFromPreferences()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -133,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n ...@@ -133,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string> <string>kw</string>
<string>context</string> <string>context</string>
<string>transaction</string> <string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -68,29 +68,17 @@ ...@@ -68,29 +68,17 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = context\n <value> <string>transaction = context\n
\n \n
if hasattr(context, \'startBuilding\') :\n if kw.get(\'created_by_builder\', 0): \n
context.startBuilding()\n return\n
context.updateCausalityState()\n
\n \n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/services_exterieurs\',\n id=\'expense\', )\n
id=\'expense\',\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/dette_fournisseur\',\n id=\'payable\', )\n
id=\'payable\',\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/tva_recuperable_196\',\n id=\'refundable_vat\', )\n
id=\'refundable_vat\',\n
immediate_reindex=1)\n
# collected_vat (only needed for EU)\n
#transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
## source=\'account/tva_collectee_196\',\n
# id=\'collected_vat\',\n
# immediate_reindex=1)\n
\n \n
context.AccountingTransaction_InitFromPreferences()\n context.AccountingTransaction_initFromPreferences()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -135,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n ...@@ -135,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string> <string>kw</string>
<string>context</string> <string>context</string>
<string>transaction</string> <string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
...@@ -68,27 +68,20 @@ ...@@ -68,27 +68,20 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = context\n <value> <string>transaction = context\n
\n \n
if hasattr(context, \'startBuilding\') :\n if kw.get(\'created_by_builder\', 0): \n
context.startBuilding()\n return\n
context.updateCausalityState()\n
\n \n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/prestation_service\',\n
id=\'income\',\n id=\'income\',\n
quantity=0,\n quantity=0, )\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/creance_client\',\n
id=\'receivable\',\n id=\'receivable\',\n
quantity=0,\n quantity=0, )\n
immediate_reindex=1)\n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/tva_collectee_196\',\n
id=\'collected_vat\',\n id=\'collected_vat\',\n
quantity=0,\n quantity=0, )\n
immediate_reindex=1)\n
\n \n
context.AccountingTransaction_InitFromPreferences()\n context.AccountingTransaction_initFromPreferences()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -133,7 +126,6 @@ context.AccountingTransaction_InitFromPreferences()\n ...@@ -133,7 +126,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string> <string>kw</string>
<string>context</string> <string>context</string>
<string>transaction</string> <string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment