mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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()
|
return super(PullRequests, self)._compute_display_name()
|
||||||
|
|
||||||
def name_get(self):
|
def name_get(self):
|
||||||
return {
|
return [
|
||||||
p.id: '%s#%s' % (p.repository.name, p.number)
|
(p.id, '%s#%d' % (p.repository.name, p.number))
|
||||||
for p in self
|
for p in self
|
||||||
}
|
]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if len(self) == 0:
|
if len(self) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user