Commit 22a0712f authored by Sebastien Robin's avatar Sebastien Robin

fixed security setting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14603 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82f30d99
......@@ -71,7 +71,7 @@
# Hence, this script must have a proxy role to modify what user cannot.\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
transaction = state_change.object\n
transaction = state_change[\'object\']\n
stop_date_key = \'your_stop_date\'\n
if not kw.has_key(stop_date_key):\n
msg = Message(domain = "ui", message="No stop date provided")\n
......@@ -141,14 +141,14 @@ context.validateDestinationCounterDate(state_change, **kw)\n
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>transaction</string>
<string>stop_date_key</string>
<string>_getattr_</string>
<string>msg</string>
<string>_getitem_</string>
<string>_write_</string>
<string>_apply_</string>
<string>context</string>
<string>context</string>
</tuple>
</value>
</item>
......
......@@ -93,11 +93,11 @@ if \'reserve\' in vault and \'salle_tri\' in vaultDestination:\n
\'destination\':transaction.getDestinationValue().getParentValue().getTitle()})\n
\n
raise ValidationFailed, (msg,)\n
resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Cash Delivery Line\')\n
resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Vault Transfer Line\')\n
\n
# Get price and total_price.\n
amount = transaction.getSourceTotalAssetPrice()\n
total_price = transaction.getTotalPrice(portal_type=[\'Cash Delivery Line\',\'Cash Delivery Cell\'],fast=0)\n
total_price = transaction.getTotalPrice(portal_type=[\'Vault Transfer Line\',\'Vault Transfer Cell\'],fast=0)\n
\n
if resource == 2:\n
msg = Message(domain="ui", message="No Resource.")\n
......
325
\ No newline at end of file
327
\ 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