mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[REF] runbot: runbot deprecated api.multi
This commit is contained in:
parent
ff051b7ae0
commit
24189fd0ee
@ -57,7 +57,6 @@ class RunbotBuildError(models.Model):
|
||||
})
|
||||
return super().create(vals)
|
||||
|
||||
@api.multi
|
||||
def write(self, vals):
|
||||
if 'active' in vals:
|
||||
for build_error in self:
|
||||
|
@ -392,7 +392,7 @@ class runbot_repo(models.Model):
|
||||
indirect.build_type = 'indirect'
|
||||
new_build.revdep_build_ids += indirect
|
||||
|
||||
@api.multi
|
||||
|
||||
def _create_pending_builds(self):
|
||||
""" Find new commits in physical repos"""
|
||||
refs = {}
|
||||
@ -451,7 +451,6 @@ class runbot_repo(models.Model):
|
||||
repo = self
|
||||
repo._git(['fetch', '-p', 'origin', '+refs/heads/*:refs/heads/*', '+refs/pull/*/head:refs/pull/*'])
|
||||
|
||||
@api.multi
|
||||
def _update(self, force=True):
|
||||
""" Update the physical git reposotories on FS"""
|
||||
for repo in reversed(self):
|
||||
@ -465,7 +464,6 @@ class runbot_repo(models.Model):
|
||||
self.invalidate_cache()
|
||||
self.env.reset()
|
||||
|
||||
@api.multi
|
||||
def _scheduler(self, host):
|
||||
nb_workers = host.get_nb_worker()
|
||||
|
||||
|
@ -33,7 +33,6 @@ class ResConfigSettings(models.TransientModel):
|
||||
)
|
||||
return res
|
||||
|
||||
@api.multi
|
||||
def set_values(self):
|
||||
super(ResConfigSettings, self).set_values()
|
||||
set_param = self.env['ir.config_parameter'].sudo().set_param
|
||||
|
Loading…
Reference in New Issue
Block a user