Commit c1faa7d4 authored by Jérome Perrin's avatar Jérome Perrin

cancel() transition is not always possible, and it's no longer needed to be...

cancel() transition is not always possible, and it's no longer needed to be able to delete transactions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28085 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb291c23
...@@ -77,7 +77,6 @@ if accounting_module.getProperty(\'current_content_script\',\n ...@@ -77,7 +77,6 @@ if accounting_module.getProperty(\'current_content_script\',\n
# XXX should be done in an external script / tool, because we have to\n # XXX should be done in an external script / tool, because we have to\n
# workaround some security checks\n # workaround some security checks\n
if 1:\n if 1:\n
[ tr.cancel() for tr in accounting_module.objectValues() ]\n
for module_id in [\'accounting_module\',\n for module_id in [\'accounting_module\',\n
\'sale_packing_list_module\',\n \'sale_packing_list_module\',\n
\'portal_simulation\', ]:\n \'portal_simulation\', ]:\n
...@@ -413,10 +412,7 @@ return "Accounting Transactions Created."\n ...@@ -413,10 +412,7 @@ return "Accounting Transactions Created."\n
<string>immediate_reindex</string> <string>immediate_reindex</string>
<string>script</string> <string>script</string>
<string>current_script_data_id</string> <string>current_script_data_id</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>tr</string>
<string>module_id</string> <string>module_id</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>module</string> <string>module</string>
...@@ -427,6 +423,8 @@ return "Accounting Transactions Created."\n ...@@ -427,6 +423,8 @@ return "Accounting Transactions Created."\n
<string>getCurrencyByReference</string> <string>getCurrencyByReference</string>
<string>euro_resource</string> <string>euro_resource</string>
<string>getBankAccountByTitle</string> <string>getBankAccountByTitle</string>
<string>append</string>
<string>$append0</string>
<string>o</string> <string>o</string>
<string>product_list</string> <string>product_list</string>
<string>product</string> <string>product</string>
...@@ -438,6 +436,7 @@ return "Accounting Transactions Created."\n ...@@ -438,6 +436,7 @@ return "Accounting Transactions Created."\n
<string>pl</string> <string>pl</string>
<string>line</string> <string>line</string>
<string>month</string> <string>month</string>
<string>tr</string>
<string>AssertionError</string> <string>AssertionError</string>
<string>vat_rate</string> <string>vat_rate</string>
<string>client_title</string> <string>client_title</string>
......
...@@ -77,7 +77,6 @@ if accounting_module.getProperty(\'current_content_script\',\n ...@@ -77,7 +77,6 @@ if accounting_module.getProperty(\'current_content_script\',\n
# XXX should be done in an external script / tool, because we have to\n # XXX should be done in an external script / tool, because we have to\n
# workaround some security checks\n # workaround some security checks\n
if 1:\n if 1:\n
[ tr.cancel() for tr in accounting_module.objectValues() ]\n
accounting_module.manage_delObjects(list(accounting_module.objectIds()))\n accounting_module.manage_delObjects(list(accounting_module.objectIds()))\n
\n \n
# XXX copy & paste \n # XXX copy & paste \n
...@@ -248,10 +247,6 @@ return "Accounting Transactions Created."\n ...@@ -248,10 +247,6 @@ return "Accounting Transactions Created."\n
<string>total_receivable_quantity</string> <string>total_receivable_quantity</string>
<string>script</string> <string>script</string>
<string>current_script_data_id</string> <string>current_script_data_id</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>tr</string>
<string>list</string> <string>list</string>
<string>getAccountByTitle</string> <string>getAccountByTitle</string>
<string>getOrganisationByTitle</string> <string>getOrganisationByTitle</string>
...@@ -259,12 +254,14 @@ return "Accounting Transactions Created."\n ...@@ -259,12 +254,14 @@ return "Accounting Transactions Created."\n
<string>getCurrencyByReference</string> <string>getCurrencyByReference</string>
<string>euro_resource</string> <string>euro_resource</string>
<string>getBankAccountByTitle</string> <string>getBankAccountByTitle</string>
<string>_getiter_</string>
<string>range</string> <string>range</string>
<string>month</string> <string>month</string>
<string>day</string> <string>day</string>
<string>vat_rate</string> <string>vat_rate</string>
<string>client_title</string> <string>client_title</string>
<string>amount</string> <string>amount</string>
<string>tr</string>
<string>receivable_qty</string> <string>receivable_qty</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>ptr</string> <string>ptr</string>
......
...@@ -74,7 +74,6 @@ if accounting_module.getProperty(\'current_content_script\',\n ...@@ -74,7 +74,6 @@ if accounting_module.getProperty(\'current_content_script\',\n
# XXX should be done in an external script / tool, because we have to\n # XXX should be done in an external script / tool, because we have to\n
# workaround some security checks\n # workaround some security checks\n
if 1:\n if 1:\n
[ tr.cancel() for tr in accounting_module.objectValues() ]\n
for module_id in [\'accounting_module\',\n for module_id in [\'accounting_module\',\n
\'sale_packing_list_module\',\n \'sale_packing_list_module\',\n
\'portal_simulation\', ]:\n \'portal_simulation\', ]:\n
...@@ -208,10 +207,7 @@ return "Accounting Transactions Created."\n ...@@ -208,10 +207,7 @@ return "Accounting Transactions Created."\n
<string>year</string> <string>year</string>
<string>script</string> <string>script</string>
<string>current_script_data_id</string> <string>current_script_data_id</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>tr</string>
<string>module_id</string> <string>module_id</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>module</string> <string>module</string>
...@@ -229,6 +225,7 @@ return "Accounting Transactions Created."\n ...@@ -229,6 +225,7 @@ return "Accounting Transactions Created."\n
<string>vat_rate</string> <string>vat_rate</string>
<string>client_title</string> <string>client_title</string>
<string>amount</string> <string>amount</string>
<string>tr</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
132 133
\ No newline at end of file \ No newline at end of file
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