Nimesh Contractor(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-bug-777472-nco into 
lp:openobject-server.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #777472 in OpenERP Server: "Improving error messages when writing invalid 
values to reference/selection fields"
  https://bugs.launchpad.net/openobject-server/+bug/777472

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-777472-nco/+merge/64402

hello,

     Improving error messages when writing invalid values to 
reference/selection field

Thank you.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-777472-nco/+merge/64402
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-bug-777472-nco.
=== modified file 'openerp/osv/orm.py'
--- openerp/osv/orm.py	2011-06-10 17:31:30 +0000
+++ openerp/osv/orm.py	2011-06-13 13:17:34 +0000
@@ -2511,7 +2511,7 @@
                 pass
             if not val_id:
                 raise except_orm(_('ValidateError'),
-                                 _('Invalid value for reference field "%s" (last part must be a non-zero integer): "%s"') % (field, value))
+                                 _('Invalid value for reference field "%s" of table "%s" (last part must be a non-zero integer): "%s"') % (field, self._table, value))
             val = val_model
         else:
             val = value
@@ -2521,7 +2521,7 @@
         elif val in dict(self._columns[field].selection(self, cr, uid, context=context)):
             return
         raise except_orm(_('ValidateError'),
-                         _('The value "%s" for the field "%s" is not in the selection') % (value, field))
+			_('The value "%s" for the field "%s" of table "%s" is not in the selection') % (value, field, self._table))
 
     def _check_removed_columns(self, cr, log=False):
         # iterate on the database columns to drop the NOT NULL constraints

_______________________________________________
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