Commit 60de037f authored by Aurel's avatar Aurel

- security fix

- typo
- remove useless check

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9961de61
...@@ -76,7 +76,8 @@ vault = transaction.getSource()\n ...@@ -76,7 +76,8 @@ vault = transaction.getSource()\n
date = transaction.getStartDate()\n date = transaction.getStartDate()\n
\n \n
# check we don\'t change of user\n # check we don\'t change of user\n
transaction.Baobab_checkSameUserVault(vault)\n if transaction.getSimulationState() == "draft":\n
transaction.Baobab_checkSameUserVault(vault)\n
\n \n
# check we are in an opened accounting day\n # check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n
......
...@@ -84,9 +84,10 @@ ...@@ -84,9 +84,10 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Assistant</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
<string>Reviewer</string> <string>Reviewer</string>
<string>Assistant</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -96,6 +97,7 @@ ...@@ -96,6 +97,7 @@
<tuple> <tuple>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -105,6 +107,7 @@ ...@@ -105,6 +107,7 @@
<tuple> <tuple>
<string>Assignor</string> <string>Assignor</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -114,9 +117,10 @@ ...@@ -114,9 +117,10 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>Assistant</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string>
<string>Reviewer</string> <string>Reviewer</string>
<string>Assistant</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -81,7 +81,7 @@ if len(ob.objectValues()) == 0:\n ...@@ -81,7 +81,7 @@ if len(ob.objectValues()) == 0:\n
\n \n
# check price defined\n # check price defined\n
if ob.getSourceTotalAssetPrice() != ob.getTotalPrice(portal_type=\'Incoming Mutilated Banknote Line\', fast=0):\n if ob.getSourceTotalAssetPrice() != ob.getTotalPrice(portal_type=\'Incoming Mutilated Banknote Line\', fast=0):\n
msg = Message(domain = "ui", message="Amont differ between document and line.")\n msg = Message(domain = "ui", message="Amount differ between document and line.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
# check reporter defined\n # check reporter defined\n
......
537 539
\ 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