Commit 281c4969 authored by Aurel's avatar Aurel

remove log

fix action
add some params

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5532de06
......@@ -75,13 +75,13 @@ if reference is None:\n
message = Message(domain="ui", message="Please give a reference")\n
raise ValueError, message\n
\n
context.log(\'reference\',reference)\n
#context.log(\'reference\',reference)\n
account_list = catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\')\n
context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\',src__=1))\n
context.log(\'len 1\',len(account_list))\n
# context.log(\'sql src\',catalog(string_index=reference, portal_type=portal_type, validation_state=\'valid\',src__=1))\n
# context.log(\'len 1\',len(account_list))\n
if len(account_list) == 0:\n
account_list = catalog(string_index="%%%s%%" % reference, portal_type=portal_type, validation_state=\'valid\')\n
context.log(\'len 2\',len(account_list))\n
#context.log(\'len 2\',len(account_list))\n
if len(account_list) == 0:\n
message = Message(domain="ui", message="No bank account have this reference")\n
raise ValueError, message\n
......
......@@ -102,6 +102,7 @@ for account_uid in account_uids:\n
if parent_value.getPortalType() == \'Organisation\':\n
acc_dict[\'activity\'] = parent_value.getActivity()\n
acc_dict[\'currency_title\'] = account.getPriceCurrencyTitle()\n
acc_dict[\'bic_code\'] = account.getBicCode(None)\n
acc_dict[\'transaction_list\'] = []\n
\n
# Current inventory\n
......
......@@ -108,7 +108,7 @@ if found == 0:\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>counter, simulation_state_list=None</string> </value>
<value> <string>counter, simulation_state_list=None, site=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......@@ -134,7 +134,7 @@ if found == 0:\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
......@@ -142,6 +142,7 @@ if found == 0:\n
<tuple>
<string>counter</string>
<string>simulation_state_list</string>
<string>site</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
......@@ -149,7 +150,6 @@ if found == 0:\n
<string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>site</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
......@@ -173,6 +173,7 @@ if found == 0:\n
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
......
......@@ -25,7 +25,7 @@
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=pause_action_action</string> </value>
<value> <string>%(content_url)s/BaseWorkflow_viewWorkflowActionDialog?workflow_action=pause_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
......@@ -67,11 +67,8 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
405
\ No newline at end of file
407
\ 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