mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: init
method may not exists on parent class
This commit is contained in:
parent
cdf4cd8287
commit
0c3c8a0b75
@ -1339,7 +1339,10 @@ class runbot_event(osv.osv):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def init(self, cr):
|
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("""
|
cr.execute("""
|
||||||
CREATE OR REPLACE FUNCTION runbot_set_logging_build() RETURNS TRIGGER AS $$
|
CREATE OR REPLACE FUNCTION runbot_set_logging_build() RETURNS TRIGGER AS $$
|
||||||
BEGIN
|
BEGIN
|
||||||
|
Loading…
Reference in New Issue
Block a user