[REF] Account : Better Warning on confirming the invoice when payment term is wrongly...
authorJay (Open ERP) <jvo@tinyerp.com>
Thu, 29 Apr 2010 09:49:15 +0000 (15:19 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Thu, 29 Apr 2010 09:49:15 +0000 (15:19 +0530)
bzr revid: jvo@tinyerp.com-20100429094915-a7m0ve9zs5xx0cq4

addons/account/account.py

index 7136784..15e0e30 100644 (file)
@@ -921,7 +921,7 @@ class account_move(osv.osv):
 
             cr.execute('update account_move set state=%s where id in ('+','.join(map(str,ids))+')', ('posted',))
         else:
-            raise osv.except_osv(_('Integrity Error !'), _('You can not validate a non-balanced entry !'))
+            raise osv.except_osv(_('Integrity Error !'), _('You can not validate a non-balanced entry !\nMake sure you have configured Payment Term properly !\nIt should contain atleast one Payment Term Line with type "Balance" !'))
         return True
 
     def button_validate(self, cursor, user, ids, context=None):