mirror of https://github.com/OCA/social.git
[FIX] Avoid 'Missing Record' error for one2many
parent
d067977827
commit
66a2f886f8
|
@ -60,7 +60,7 @@ class MailTrackingValue(models.Model):
|
||||||
|
|
||||||
def get_values(source, prefix):
|
def get_values(source, prefix):
|
||||||
if source:
|
if source:
|
||||||
names = ', '.join(source.mapped('display_name'))
|
names = ', '.join(source.exists().mapped('display_name'))
|
||||||
json_ids = json.dumps(source.ids)
|
json_ids = json.dumps(source.ids)
|
||||||
else:
|
else:
|
||||||
names = ''
|
names = ''
|
||||||
|
|
Loading…
Reference in New Issue