From b2ee0c4778b5f4fb8f8a704e4ed1e6a41f55a237 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Thu, 29 Apr 2010 15:20:22 +0530 Subject: [PATCH] [REF] Account : Better Warning on confirming the invoice when payment term is wrongly configured bzr revid: jvo@tinyerp.com-20100429095022-orqg5kb3gm7mqwgf --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 74531102073..eca8bf9b397 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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):