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 @@
<key> <string>_body</string> </key>
<value> <string>transaction = context\n
\n
if hasattr(context, \'startBuilding\') :\n
context.startBuilding()\n
context.updateCausalityState()\n
if kw.get(\'created_by_builder\', 0): \n
return\n
\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
immediate_reindex=1)\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
\n
context.AccountingTransaction_InitFromPreferences()\n
context.AccountingTransaction_initFromPreferences()\n
</string> </value>
</item>
<item>
......@@ -122,7 +119,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string>
<string>context</string>
<string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string>
</tuple>
</value>
......
......@@ -68,27 +68,17 @@
<key> <string>_body</string> </key>
<value> <string>transaction = context\n
\n
if hasattr(context, \'startBuilding\') :\n
context.startBuilding()\n
context.updateCausalityState()\n
if kw.get(\'created_by_builder\', 0): \n
return\n
\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/creance_client\',\n
id=\'receivable\',\n
quantity=0,\n
immediate_reindex=1)\n
id=\'receivable\', )\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/dette_fournisseur\',\n
id=\'payable\',\n
quantity=0,\n
immediate_reindex=1)\n
id=\'payable\', )\n
transaction.newContent(portal_type=\'Accounting Transaction Line\',\n
# source=\'account/banques_etablissements_financiers\',\n
id=\'bank\',\n
quantity=0,\n
immediate_reindex=1)\n
id=\'bank\', )\n
\n
context.AccountingTransaction_InitFromPreferences()\n
context.AccountingTransaction_initFromPreferences()\n
</string> </value>
</item>
<item>
......@@ -133,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string>
<string>context</string>
<string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string>
</tuple>
</value>
......
......@@ -68,29 +68,17 @@
<key> <string>_body</string> </key>
<value> <string>transaction = context\n
\n
if hasattr(context, \'startBuilding\') :\n
context.startBuilding()\n
context.updateCausalityState()\n
if kw.get(\'created_by_builder\', 0): \n
return\n
\n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/services_exterieurs\',\n
id=\'expense\',\n
immediate_reindex=1)\n
id=\'expense\', )\n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/dette_fournisseur\',\n
id=\'payable\',\n
immediate_reindex=1)\n
id=\'payable\', )\n
transaction.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
# source=\'account/tva_recuperable_196\',\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
id=\'refundable_vat\', )\n
\n
context.AccountingTransaction_InitFromPreferences()\n
context.AccountingTransaction_initFromPreferences()\n
</string> </value>
</item>
<item>
......@@ -135,7 +123,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string>
<string>context</string>
<string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string>
</tuple>
</value>
......
......@@ -68,27 +68,20 @@
<key> <string>_body</string> </key>
<value> <string>transaction = context\n
\n
if hasattr(context, \'startBuilding\') :\n
context.startBuilding()\n
context.updateCausalityState()\n
if kw.get(\'created_by_builder\', 0): \n
return\n
\n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/prestation_service\',\n
id=\'income\',\n
quantity=0,\n
immediate_reindex=1)\n
quantity=0, )\n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/creance_client\',\n
id=\'receivable\',\n
quantity=0,\n
immediate_reindex=1)\n
quantity=0, )\n
transaction.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
# source=\'account/tva_collectee_196\',\n
id=\'collected_vat\',\n
quantity=0,\n
immediate_reindex=1)\n
quantity=0, )\n
\n
context.AccountingTransaction_InitFromPreferences()\n
context.AccountingTransaction_initFromPreferences()\n
</string> </value>
</item>
<item>
......@@ -133,7 +126,6 @@ context.AccountingTransaction_InitFromPreferences()\n
<string>kw</string>
<string>context</string>
<string>transaction</string>
<string>hasattr</string>
<string>_getattr_</string>
</tuple>
</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