[IMP] api decorator allow both res_id as well as id
As in python id is a builtin function name. Closes: #5027
This commit is contained in:
parent
7831dac1f1
commit
0fc5860fca
|
@ -638,7 +638,7 @@ def guess(method):
|
||||||
return cr_uid_ids_context(method)
|
return cr_uid_ids_context(method)
|
||||||
else:
|
else:
|
||||||
return cr_uid_ids(method)
|
return cr_uid_ids(method)
|
||||||
elif names[3] == 'id':
|
elif names[3] == 'id' or names[3] == 'res_id':
|
||||||
if 'context' in names or kwname:
|
if 'context' in names or kwname:
|
||||||
return cr_uid_id_context(method)
|
return cr_uid_id_context(method)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue