mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +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)
|
return super().create(vals)
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def write(self, vals):
|
def write(self, vals):
|
||||||
if 'active' in vals:
|
if 'active' in vals:
|
||||||
for build_error in self:
|
for build_error in self:
|
||||||
|
@ -392,7 +392,7 @@ class runbot_repo(models.Model):
|
|||||||
indirect.build_type = 'indirect'
|
indirect.build_type = 'indirect'
|
||||||
new_build.revdep_build_ids += indirect
|
new_build.revdep_build_ids += indirect
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def _create_pending_builds(self):
|
def _create_pending_builds(self):
|
||||||
""" Find new commits in physical repos"""
|
""" Find new commits in physical repos"""
|
||||||
refs = {}
|
refs = {}
|
||||||
@ -451,7 +451,6 @@ class runbot_repo(models.Model):
|
|||||||
repo = self
|
repo = self
|
||||||
repo._git(['fetch', '-p', 'origin', '+refs/heads/*:refs/heads/*', '+refs/pull/*/head:refs/pull/*'])
|
repo._git(['fetch', '-p', 'origin', '+refs/heads/*:refs/heads/*', '+refs/pull/*/head:refs/pull/*'])
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def _update(self, force=True):
|
def _update(self, force=True):
|
||||||
""" Update the physical git reposotories on FS"""
|
""" Update the physical git reposotories on FS"""
|
||||||
for repo in reversed(self):
|
for repo in reversed(self):
|
||||||
@ -465,7 +464,6 @@ class runbot_repo(models.Model):
|
|||||||
self.invalidate_cache()
|
self.invalidate_cache()
|
||||||
self.env.reset()
|
self.env.reset()
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def _scheduler(self, host):
|
def _scheduler(self, host):
|
||||||
nb_workers = host.get_nb_worker()
|
nb_workers = host.get_nb_worker()
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
)
|
)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
@api.multi
|
|
||||||
def set_values(self):
|
def set_values(self):
|
||||||
super(ResConfigSettings, self).set_values()
|
super(ResConfigSettings, self).set_values()
|
||||||
set_param = self.env['ir.config_parameter'].sudo().set_param
|
set_param = self.env['ir.config_parameter'].sudo().set_param
|
||||||
|
Loading…
Reference in New Issue
Block a user