[FIX] base_module_record: avoid a crash when calling a method with less than 6 arguments
bzr revid: christophe@tinyerp.com-20090615125405-d1oce88vbqaylqfb
This commit is contained in:
parent
5b43b63c4d
commit
916bd60cd0
|
@ -41,8 +41,8 @@ def fnct_call(fnct):
|
|||
if args[4] not in ('default_get','read','fields_view_get','fields_get','search','search_count','name_search','name_get','get','request_get', 'get_sc'):
|
||||
if _old_args is not None:
|
||||
args[5].update(_old_args)
|
||||
if args[5]:
|
||||
mod.recording_data.append(('query', args, argv,res))
|
||||
if args[5]:
|
||||
mod.recording_data.append(('query', args, argv,res))
|
||||
return res
|
||||
return execute
|
||||
|
||||
|
|
Loading…
Reference in New Issue