Commit dd80ea28 authored by Aurel's avatar Aurel

user must defined site on document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20464 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f0b3c50
......@@ -88,6 +88,10 @@ if transaction.getDestinationSection() in ("", None) and \\\n
msg = Message(domain=\'ui\', message="You must defined an account or and accounting code as destination.")\n
raise ValidationFailed, (msg,)\n
\n
if transaction.getSite() in ("", None):\n
msg = Message(domain=\'ui\', message="You must defined site on document.")\n
raise ValidationFailed, (msg,)\n
\n
# Check the amount.\n
price = transaction.getSourceTotalAssetPrice()\n
if price is None or price <= 0:\n
......
394
\ No newline at end of file
396
\ 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