[IMP] Improved error message when creating new entry for psql view

lp bug: https://launchpad.net/bugs/446128 fixed

bzr revid: jvo@tinyerp.com-20091013063711-08jbfeq7lzzm6u9d
This commit is contained in:
Jay (Open ERP) 2009-10-13 12:07:11 +05:30
parent 9c917f2827
commit 5d617aff5a
1 changed files with 1 additions and 1 deletions

View File

@ -2740,7 +2740,7 @@ class orm(orm_template):
cr.execute("SELECT nextval('"+self._sequence+"')")
except:
raise except_orm(_('UserError'),
_('You cannot perform this operation.'))
_('You cannot perform this operation. New Record Creation is not allowed for this object as this object is for reporting purpose.'))
id_new = cr.fetchone()[0]
for table in tocreate: