mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot: avoid copying always_pull field
This commit will prevent people acting like cowboys to break the whole system by duplicating a Dockerfile without disabling the always_pull field.
This commit is contained in:
parent
ad87096436
commit
a8b3d6e205
@ -128,7 +128,7 @@ class Dockerfile(models.Model):
|
||||
arch_base = fields.Text(related='template_id.arch_base', readonly=False, related_sudo=True)
|
||||
dockerfile = fields.Text(compute='_compute_dockerfile', tracking=True)
|
||||
to_build = fields.Boolean('To Build', help='Build Dockerfile. Check this when the Dockerfile is ready.', default=False)
|
||||
always_pull = fields.Boolean('Always pull', help='Always Pull on the hosts, not only at the use time', default=False, tracking=True)
|
||||
always_pull = fields.Boolean('Always pull', help='Always Pull on the hosts, not only at the use time', default=False, tracking=True, copy=False)
|
||||
version_ids = fields.One2many('runbot.version', 'dockerfile_id', string='Versions')
|
||||
description = fields.Text('Description')
|
||||
view_ids = fields.Many2many('ir.ui.view', compute='_compute_view_ids', groups="runbot.group_runbot_admin")
|
||||
|
Loading…
Reference in New Issue
Block a user