mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: _compute_host_id
If you try to manually create bundle, Odoo will crash, because it will try to use `name` value that is not set yet. For that we start computing host_id once `name` is entered.
This commit is contained in:
parent
0ed4728518
commit
5337ecd11f
@ -54,7 +54,7 @@ class Bundle(models.Model):
|
||||
def _compute_host_id(self):
|
||||
assigned_only = None
|
||||
runbots = {}
|
||||
for bundle in self:
|
||||
for bundle in self.filtered('name'):
|
||||
elems = bundle.name.split('-')
|
||||
for elem in elems:
|
||||
if elem.startswith('runbot'):
|
||||
|
Loading…
Reference in New Issue
Block a user