[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:
Stefan Rijnhart
2015-02-09 01:10:36 +01:00
committed by Antony Lesuisse
parent 7831dac1f1
commit 0fc5860fca
+1 -1
View File
@@ -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: