[FIX] browse_record.__str__: avoid crashing when ID is None
bzr revid: odo@openerp.com-20140130153955-naxbrcz5pv17z4rq
This commit is contained in:
parent
30513f498c
commit
0428c00e2f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue