mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add teams on trigger.
This will be mainy usefull in trigger categories custom view and for dashboards.
This commit is contained in:
parent
5f2fe9a451
commit
a382977d39
@ -56,6 +56,8 @@ class Trigger(models.Model):
|
||||
ci_description = fields.Char("ci description")
|
||||
has_stats = fields.Boolean('Has a make_stats config step', compute="_compute_has_stats", store=True)
|
||||
|
||||
team_ids = fields.Many2many('runbot.team', string="Runbot Teams", help="Teams responsible of this trigger, mainly usefull for nightly")
|
||||
|
||||
@api.depends('config_id.step_order_ids.step_id.make_stats')
|
||||
def _compute_has_stats(self):
|
||||
for trigger in self:
|
||||
|
@ -27,6 +27,7 @@
|
||||
<field name="ci_url"/>
|
||||
<field name="ci_description"/>
|
||||
<field name="has_stats"/>
|
||||
<field name="team_ids"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user