mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] forwardport: decoration of PullRequests.create
Apparently multi is the default, so the method not being decorated blows up when creating fake PRs through the interface.
This commit is contained in:
parent
5336e53de2
commit
08c4e94ca9
@ -210,6 +210,7 @@ class PullRequests(models.Model):
|
|||||||
for pr in self:
|
for pr in self:
|
||||||
pr.refname = pr.label.split(':', 1)[-1]
|
pr.refname = pr.label.split(':', 1)[-1]
|
||||||
|
|
||||||
|
@api.model_create_single
|
||||||
def create(self, vals):
|
def create(self, vals):
|
||||||
# PR opened event always creates a new PR, override so we can precreate PRs
|
# PR opened event always creates a new PR, override so we can precreate PRs
|
||||||
existing = self.search([
|
existing = self.search([
|
||||||
|
Loading…
Reference in New Issue
Block a user