mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: don't log twice
This commit is contained in:
parent
6d4efcb470
commit
0a37ff2f90
@ -357,7 +357,8 @@ class Runbot(models.AbstractModel):
|
||||
existing = self.env['runbot.warning'].search([('message', '=', message)], limit=1)
|
||||
if existing:
|
||||
existing.count += 1
|
||||
return self.env['runbot.warning'].create({'message': message})
|
||||
else:
|
||||
return self.env['runbot.warning'].create({'message': message})
|
||||
|
||||
|
||||
class RunbotWarning(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user