Commit 1aeb6f74 authored by Aurel's avatar Aurel

script required a proxy role + other change

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a2f194a
......@@ -103,6 +103,14 @@ else:\n
<key> <string>_params</string> </key>
<value> <string>user_id=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
......
......@@ -84,6 +84,14 @@ for object in object_to_check_list:\n
context.log(\'Error on \', (context.getRelativeUrl(),node_url))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n
if baobab_source is not None and object.getBaobabSourceUid() is None:\n
context.log(\'Error on \', (context.getRelativeUrl(),baobab_source))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n
if baobab_destination is not None and object.getBaobabDestinationUid() is None:\n
context.log(\'Error on \', (context.getRelativeUrl(),baobab_destination))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n
</string> </value>
</item>
<item>
......
......@@ -214,9 +214,9 @@ else: \n
,**inventory_kw\n
)\n
#context.log(\'CounterMOdule_getVaultTransactionList, sql src:\',context.portal_simulation.getCurrentInventoryList( node=vault_url_list\n
#, ignore_variation=0,src__=1\n
#,**inventory_kw\n
#))\n
# , ignore_variation=0,src__=1\n
# ,**inventory_kw\n
# ))\n
\n
if summarise:\n
total_quantity = 0\n
......
403
\ No newline at end of file
404
\ 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