[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:
parent
9c917f2827
commit
5d617aff5a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue