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 @@ ...@@ -71,7 +71,7 @@
# Hence, this script must have a proxy role to modify what user cannot.\n # Hence, this script must have a proxy role to modify what user cannot.\n
from Products.DCWorkflow.DCWorkflow import ValidationFailed\n from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\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 stop_date_key = \'your_stop_date\'\n
if not kw.has_key(stop_date_key):\n if not kw.has_key(stop_date_key):\n
msg = Message(domain = "ui", message="No stop date provided")\n msg = Message(domain = "ui", message="No stop date provided")\n
...@@ -141,14 +141,14 @@ context.validateDestinationCounterDate(state_change, **kw)\n ...@@ -141,14 +141,14 @@ context.validateDestinationCounterDate(state_change, **kw)\n
<string>ValidationFailed</string> <string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>Message</string> <string>Message</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>transaction</string> <string>transaction</string>
<string>stop_date_key</string> <string>stop_date_key</string>
<string>_getattr_</string>
<string>msg</string> <string>msg</string>
<string>_getitem_</string>
<string>_write_</string> <string>_write_</string>
<string>_apply_</string> <string>_apply_</string>
<string>context</string> <string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -93,11 +93,11 @@ if \'reserve\' in vault and \'salle_tri\' in vaultDestination:\n ...@@ -93,11 +93,11 @@ if \'reserve\' in vault and \'salle_tri\' in vaultDestination:\n
\'destination\':transaction.getDestinationValue().getParentValue().getTitle()})\n \'destination\':transaction.getDestinationValue().getParentValue().getTitle()})\n
\n \n
raise ValidationFailed, (msg,)\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 \n
# Get price and total_price.\n # Get price and total_price.\n
amount = transaction.getSourceTotalAssetPrice()\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 \n
if resource == 2:\n if resource == 2:\n
msg = Message(domain="ui", message="No Resource.")\n msg = Message(domain="ui", message="No Resource.")\n
......
325 327
\ 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