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
date = transaction.getStartDate()\n
\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
# check we are in an opened accounting day\n
transaction.Baobab_checkCounterDateOpen(site=vault, date=date)\n
......
......@@ -84,9 +84,10 @@
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Assistant</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
<string>Assistant</string>
</tuple>
</value>
</item>
......@@ -96,6 +97,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -105,6 +107,7 @@
<tuple>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
......@@ -114,9 +117,10 @@
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Assistant</string>
<string>Manager</string>
<string>Owner</string>
<string>Reviewer</string>
<string>Assistant</string>
</tuple>
</value>
</item>
......
......@@ -81,7 +81,7 @@ if len(ob.objectValues()) == 0:\n
\n
# check price defined\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
\n
# check reporter defined\n
......
537
\ No newline at end of file
539
\ 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