Commit 1f5918a9 authored by Vincent Pelletier's avatar Vincent Pelletier

Don't check uid accessors after checking value is not None.

This breaks because of monkey-patched baobab uid getters (see
ERP5Banking/Document/BankingOperation.py) in case where we are not interested
in uids (ex: Cash Container Cell). The only cases it should detect should in
fact be detected in unit tests (ie, stock impact invalid for a certain kind of
document).
Reverts partially r18818.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38107 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d09fe0a0
...@@ -72,14 +72,6 @@ for object in object_to_check_list:\n ...@@ -72,14 +72,6 @@ for object in object_to_check_list:\n
context.log(\'Error on \', (context.getRelativeUrl(),node_url))\n context.log(\'Error on \', (context.getRelativeUrl(),node_url))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
if baobab_source is not None and object.getBaobabSourceUid() is None:\n
context.log(\'Error on \', (context.getRelativeUrl(),baobab_source))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n
if baobab_destination is not None and object.getBaobabDestinationUid() is None:\n
context.log(\'Error on \', (context.getRelativeUrl(),baobab_destination))\n
msg = Message(domain=\'ui\',message=\'Sorry, wrong source or destination\')\n
raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
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