mirror of
https://github.com/odoo-ide/pydevd-odoo.git
synced 2025-12-17 16:29:02 +02:00
Improve recordset presentation
This commit is contained in:
@@ -30,11 +30,9 @@ class OdooRecordSetProvider(object):
|
|||||||
return defaultResolver.get_dictionary(obj)
|
return defaultResolver.get_dictionary(obj)
|
||||||
|
|
||||||
def get_str(self, val):
|
def get_str(self, val):
|
||||||
if not val:
|
|
||||||
return ''
|
|
||||||
s = str(val.ids)
|
s = str(val.ids)
|
||||||
if len(val) == 1:
|
if len(val) == 1:
|
||||||
name = getattr(val, 'name')
|
name = getattr(val, 'name', None)
|
||||||
if name:
|
if name:
|
||||||
s += ' ⇨ %s' % name
|
s += ' ⇨ %s' % name
|
||||||
return s
|
return s
|
||||||
|
|||||||
Reference in New Issue
Block a user