mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: show bundles that use a Dockerfile
Before manipulating a Dockerfile, it can be useful to know which bundle is using it.
This commit is contained in:
parent
67d020a8b3
commit
b015ec6840
@ -20,6 +20,7 @@ class Dockerfile(models.Model):
|
|||||||
version_ids = fields.One2many('runbot.version', 'dockerfile_id', string='Versions')
|
version_ids = fields.One2many('runbot.version', 'dockerfile_id', string='Versions')
|
||||||
description = fields.Text('Description')
|
description = fields.Text('Description')
|
||||||
view_ids = fields.Many2many('ir.ui.view', compute='_compute_view_ids')
|
view_ids = fields.Many2many('ir.ui.view', compute='_compute_view_ids')
|
||||||
|
bundle_ids = fields.One2many('runbot.bundle', 'dockerfile_id', string='Used in Bundles')
|
||||||
|
|
||||||
_sql_constraints = [('runbot_dockerfile_name_unique', 'unique(name)', 'A Dockerfile with this name already exists')]
|
_sql_constraints = [('runbot_dockerfile_name_unique', 'unique(name)', 'A Dockerfile with this name already exists')]
|
||||||
|
|
||||||
|
@ -32,6 +32,14 @@
|
|||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
<page string="Bundles">
|
||||||
|
<field name="bundle_ids" widget="one2many">
|
||||||
|
<tree>
|
||||||
|
<field name="project_id"/>
|
||||||
|
<field name="name"/>
|
||||||
|
</tree>
|
||||||
|
</field>
|
||||||
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
</sheet>
|
</sheet>
|
||||||
<div class="oe_chatter">
|
<div class="oe_chatter">
|
||||||
@ -51,6 +59,7 @@
|
|||||||
<field name="image_tag"/>
|
<field name="image_tag"/>
|
||||||
<field name="to_build"/>
|
<field name="to_build"/>
|
||||||
<field name="version_ids" widget="many2many_tags"/>
|
<field name="version_ids" widget="many2many_tags"/>
|
||||||
|
<field name="bundle_ids"/>
|
||||||
<field name="dockerfile" invisible="True"/>
|
<field name="dockerfile" invisible="True"/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user