mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot_merge: incorrect name_get implementation
It's supposed to return a list of pairs, not a dict.
This commit is contained in:
parent
99d2d426eb
commit
0bdc824c2e
@ -574,10 +574,10 @@ class PullRequests(models.Model):
|
||||
return super(PullRequests, self)._compute_display_name()
|
||||
|
||||
def name_get(self):
|
||||
return {
|
||||
p.id: '%s#%s' % (p.repository.name, p.number)
|
||||
return [
|
||||
(p.id, '%s#%d' % (p.repository.name, p.number))
|
||||
for p in self
|
||||
}
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
if len(self) == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user