mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[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).
This commit is contained in:
parent
737cbd5de2
commit
3410f50248
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user