From 3410f50248723bb2993ab71bb5df9fa31424a4c3 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 21 Jun 2024 10:41:01 +0200 Subject: [PATCH] [FIX] runbot_merge: `Commit.create` The method was not marked as a create, following which it did not allow creating commits via the UI (annoying for testing / reproducing issues involving statuses). --- runbot_merge/models/pull_requests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index 9afae63a..260e0c9b 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -1776,6 +1776,7 @@ class Commit(models.Model): commit_ids = fields.Many2many('runbot_merge.stagings', relation='runbot_merge_stagings_commits', column2='staging_id', column1='commit_id') pull_requests = fields.One2many('runbot_merge.pull_requests', compute='_compute_prs') + @api.model_create_single def create(self, values): values['to_check'] = True r = super(Commit, self).create(values)