Commit 3fb4bc19 authored by Aurel's avatar Aurel

convert letter with upper to do comparison

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11500 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 455a255a
...@@ -84,7 +84,7 @@ if \'encaisse_des_billets_retires_de_la_circulation\' in dest.getRelativeUrl():\ ...@@ -84,7 +84,7 @@ if \'encaisse_des_billets_retires_de_la_circulation\' in dest.getRelativeUrl():\
\n \n
# check between letter and destination site codification\n # check between letter and destination site codification\n
line_letter = object.objectValues(portal_type=\'Cash Delivery Line\')[0].objectValues()[0].getEmissionLetter()\n line_letter = object.objectValues(portal_type=\'Cash Delivery Line\')[0].objectValues()[0].getEmissionLetter()\n
if line_letter != dest.getCodification()[0]:\n if line_letter.lower() != dest.getCodification()[0].lower():\n
msg = Message(domain="ui", message="Letter defined on line do not correspond to destination site.")\n msg = Message(domain="ui", message="Letter defined on line do not correspond to destination site.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
......
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