mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 05:15:45 +07:00
[IMP] runbot: add an action to parse logs from build error views
This commit is contained in:
parent
c49e422a25
commit
4c75a8e107
@ -9,4 +9,14 @@
|
|||||||
records._parse_logs()
|
records._parse_logs()
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
<record model="ir.actions.server" id="action_parse_log">
|
||||||
|
<field name="name">Parse log entry</field>
|
||||||
|
<field name="model_id" ref="runbot.model_runbot_error_log" />
|
||||||
|
<field name="binding_model_id" ref="runbot.model_runbot_error_log" />
|
||||||
|
<field name="type">ir.actions.server</field>
|
||||||
|
<field name="state">code</field>
|
||||||
|
<field name="code">
|
||||||
|
records._parse_logs()
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -100,6 +100,11 @@ class RunbotErrorLog(models.Model):
|
|||||||
"target": "new",
|
"target": "new",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def _parse_logs(self):
|
||||||
|
BuildError = self.env['runbot.build.error']
|
||||||
|
BuildError._parse_logs(self)
|
||||||
|
|
||||||
|
|
||||||
@api.model_cr
|
@api.model_cr
|
||||||
def init(self):
|
def init(self):
|
||||||
""" Create an SQL view for ir.logging """
|
""" Create an SQL view for ir.logging """
|
||||||
|
Loading…
Reference in New Issue
Block a user