Commit 8077eb2f authored by Aurel's avatar Aurel

-check not same source when doing dematerialization

-typo in title

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15808 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b7979d0
......@@ -109,7 +109,10 @@ if transaction.isDematerialization():\n
if not \'encaisse_des_billets_retires_de_la_circulation\' in vault:\n
msg = Message(domain="ui", message="Invalid source.")\n
raise ValidationFailed, (msg,)\n
\n
if source_section in source_object.getPath():\n
msg = Message(domain="ui", message="You can\'t used this site.")\n
raise ValidationFailed, (msg,)\n
\n
\n
# Get price and total_price.\n
amount = transaction.getSourceTotalAssetPrice()\n
......
485
\ No newline at end of file
487
\ 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