[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:
Xavier Morel 2021-11-12 16:03:28 +01:00
parent 5336e53de2
commit 08c4e94ca9

View File

@ -210,6 +210,7 @@ class PullRequests(models.Model):
for pr in self:
pr.refname = pr.label.split(':', 1)[-1]
@api.model_create_single
def create(self, vals):
# PR opened event always creates a new PR, override so we can precreate PRs
existing = self.search([