From 0c3c8a0b75fc44958ad67e1dd0815f77160bdef3 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 14 Nov 2017 16:58:56 +0100 Subject: [PATCH] [FIX] runbot: `init` method may not exists on parent class --- runbot/runbot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 089f0676..d70ab288 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -1339,7 +1339,10 @@ class runbot_event(osv.osv): } def init(self, cr): - super(runbot_event, self).init(cr) + parent_class = super(runbot_event, self) + if hasattr(parent_class, 'init'): + parent_class.init(cr) + cr.execute(""" CREATE OR REPLACE FUNCTION runbot_set_logging_build() RETURNS TRIGGER AS $$ BEGIN