[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:
parent
3fe0b4d4e7
commit
b2ee0c4778
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue