mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot_merge: provide explicit labels on fields
Two fields can't have the same label, because of the field names, there were field label conflicts.
This commit is contained in:
parent
0bdc824c2e
commit
27e9a4f9ee
@ -554,8 +554,8 @@ class PullRequests(models.Model):
|
|||||||
status = fields.Char(compute='_compute_statuses')
|
status = fields.Char(compute='_compute_statuses')
|
||||||
previous_failure = fields.Char(default='{}')
|
previous_failure = fields.Char(default='{}')
|
||||||
|
|
||||||
batch_id = fields.Many2one('runbot_merge.batch',compute='_compute_active_batch', store=True)
|
batch_id = fields.Many2one('runbot_merge.batch', string="Active Batch", compute='_compute_active_batch', store=True)
|
||||||
batch_ids = fields.Many2many('runbot_merge.batch')
|
batch_ids = fields.Many2many('runbot_merge.batch', string="Batches")
|
||||||
staging_id = fields.Many2one(related='batch_id.staging_id', store=True)
|
staging_id = fields.Many2one(related='batch_id.staging_id', store=True)
|
||||||
commits_map = fields.Char(help="JSON-encoded mapping of PR commits to actually integrated commits. The integration head (either a merge commit or the PR's topmost) is mapped from the 'empty' pr commit (the key is an empty string, because you can't put a null key in json maps).", default='{}')
|
commits_map = fields.Char(help="JSON-encoded mapping of PR commits to actually integrated commits. The integration head (either a merge commit or the PR's topmost) is mapped from the 'empty' pr commit (the key is an empty string, because you can't put a null key in json maps).", default='{}')
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ class Partner(models.Model):
|
|||||||
reviewer = fields.Boolean(default=False, help="Can review PRs (maybe m2m to repos/branches?)")
|
reviewer = fields.Boolean(default=False, help="Can review PRs (maybe m2m to repos/branches?)")
|
||||||
self_reviewer = fields.Boolean(default=False, help="Can review own PRs (independent from reviewer)")
|
self_reviewer = fields.Boolean(default=False, help="Can review own PRs (independent from reviewer)")
|
||||||
delegate_reviewer = fields.Many2many('runbot_merge.pull_requests')
|
delegate_reviewer = fields.Many2many('runbot_merge.pull_requests')
|
||||||
formatted_email = fields.Char(compute='_rfc5322_formatted')
|
formatted_email = fields.Char(string="commit email", compute='_rfc5322_formatted')
|
||||||
|
|
||||||
def _auto_init(self):
|
def _auto_init(self):
|
||||||
res = super(Partner, self)._auto_init()
|
res = super(Partner, self)._auto_init()
|
||||||
|
Loading…
Reference in New Issue
Block a user