Divyesh Makwana(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-919682-mdi into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #919682 in OpenERP Addons: "account - Error message for chart check must 
be user freindly "
  https://bugs.launchpad.net/openobject-addons/+bug/919682

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-919682-mdi/+merge/89640

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/919682 
"account - Error message for chart check must be user freindly".

Thanks and Regards,

Divyesh Makwana(MDI)
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-919682-mdi/+merge/89640
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-919682-mdi.
=== modified file 'account/account.py'
--- account/account.py	2012-01-06 11:11:49 +0000
+++ account/account.py	2012-01-23 09:23:24 +0000
@@ -1331,15 +1331,18 @@
     def button_validate(self, cursor, user, ids, context=None):
         for move in self.browse(cursor, user, ids, context=context):
             top = None
+            acc_line = None
             for line in move.line_id:
                 account = line.account_id
+                if not acc_line:
+                    acc_line = account
                 while account:
                     account2 = account
                     account = account.parent_id
                 if not top:
                     top = account2.id
                 elif top<>account2.id:
-                    raise osv.except_osv(_('Error !'), _('You can not validate a journal entry unless all journal items belongs to the same chart of accounts !'))
+                    raise osv.except_osv(_('Error !'), _('You can not validate a journal entry because account "%s" does not belong to the chart of accounts "%s"!'% (acc_line.name,account2.name)))
         return self.post(cursor, user, ids, context=context)
 
     def button_cancel(self, cr, uid, ids, context=None):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to