[REF] Account : Better Warning on confirming the invoice when payment term is wrongly configured

bzr revid: jvo@tinyerp.com-20100429095022-orqg5kb3gm7mqwgf
This commit is contained in:
Jay (Open ERP) 2010-04-29 15:20:22 +05:30
parent 3fe0b4d4e7
commit b2ee0c4778
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ class account_move(osv.osv):
cr.execute('update account_move set state=%s where id =ANY(%s) ',('posted',ids,))
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):