mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +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:
|
||||
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([
|
||||
|
Loading…
Reference in New Issue
Block a user