[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:
committed by
Antony Lesuisse
parent
7831dac1f1
commit
0fc5860fca
+1
-1
@@ -638,7 +638,7 @@ def guess(method):
|
||||
return cr_uid_ids_context(method)
|
||||
else:
|
||||
return cr_uid_ids(method)
|
||||
elif names[3] == 'id':
|
||||
elif names[3] == 'id' or names[3] == 'res_id':
|
||||
if 'context' in names or kwname:
|
||||
return cr_uid_id_context(method)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user