[REF] Use the netsvc.SERVICES instead of netsvc._service

bzr revid: stephane@tinyerp.com-20090106004531-tj1cmvbev0em9egl
This commit is contained in:
Stephane Wirtel 2009-01-06 01:45:31 +01:00
parent 0ceda3985f
commit a2aa6d31df
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)