[REF] Use the netsvc.SERVICES instead of netsvc._service
bzr revid: stephane@tinyerp.com-20090106004531-tj1cmvbev0em9egl
This commit is contained in:
parent
0ceda3985f
commit
a2aa6d31df
|
@ -341,7 +341,7 @@ def tmp_fct(fct_src):
|
|||
return res
|
||||
return execute
|
||||
|
||||
obj = netsvc._service['object']
|
||||
obj = netsvc.SERVICES['object']
|
||||
obj.execute = tmp_fct(obj.execute)
|
||||
obj.exportMethod(obj.execute)
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class base_module_record(osv.osv):
|
|||
self.recording_data = []
|
||||
self.depends = {}
|
||||
if not installed:
|
||||
obj = netsvc._service['object']
|
||||
obj = netsvc.SERVICES['object']
|
||||
obj.execute = fnct_call(obj.execute)
|
||||
obj.exportMethod(obj.execute)
|
||||
obj.exec_workflow = fnct_call_workflow(obj.exec_workflow)
|
||||
|
|
Loading…
Reference in New Issue