[FIX] browse_record.__str__: avoid crashing when ID is None

bzr revid: odo@openerp.com-20140130153955-naxbrcz5pv17z4rq
This commit is contained in:
Olivier Dony 2014-01-30 16:39:55 +01:00
parent 30513f498c
commit 0428c00e2f
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ class browse_record(object):
return self._id
def __str__(self):
return "browse_record(%s, %d)" % (self._table_name, self._id)
return "browse_record(%s, %s)" % (self._table_name, self._id)
def __eq__(self, other):
if not isinstance(other, browse_record):