Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-791132-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #791132 in OpenERP Addons: "account_move_line insufficient error message"
  https://bugs.launchpad.net/openobject-addons/+bug/791132

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-791132-bde/+merge/63653

Hello Sir,

The warning message on wrong selection of journal is improved.

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-791132-bde/+merge/63653
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-791132-bde.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py	2011-05-30 14:14:51 +0000
+++ account/account_move_line.py	2011-06-07 07:17:24 +0000
@@ -1282,7 +1282,7 @@
                 vals['amount_currency'] = cur_obj.compute(cr, uid, account.company_id.currency_id.id,
                     account.currency_id.id, vals.get('debit', 0.0)-vals.get('credit', 0.0), context=ctx)
         if not ok:
-            raise osv.except_osv(_('Bad account !'), _('You can not use this general account in this journal !'))
+            raise osv.except_osv(_('Bad account !'), _("You can not use '%s' in this journal !") % str(journal.name))
 
         if vals.get('analytic_account_id',False):
             if journal.analytic_journal_id:

_______________________________________________
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