KERNEL: clean the code
bzr revid: ced-3cd5d34a7bd4ecc757b295cd99b184804f841558
This commit is contained in:
parent
ecf679f5ed
commit
86e7f0cc90
|
@ -163,8 +163,6 @@ def init_module_objects(cr, module_name, obj_list):
|
||||||
pool = pooler.get_pool(cr.dbname)
|
pool = pooler.get_pool(cr.dbname)
|
||||||
logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s:creating or updating database tables' % module_name)
|
logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s:creating or updating database tables' % module_name)
|
||||||
for obj in obj_list:
|
for obj in obj_list:
|
||||||
#CHECKME: is this test useful? all objects are supposed to have an _auto_init method, right?
|
|
||||||
#if hasattr(obj, '_auto_init'):
|
|
||||||
if hasattr(obj, 'init'):
|
if hasattr(obj, 'init'):
|
||||||
obj.init(cr)
|
obj.init(cr)
|
||||||
obj._auto_init(cr)
|
obj._auto_init(cr)
|
||||||
|
|
Loading…
Reference in New Issue