summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Rijnhart <stefan@therp.nl>2015-02-02 16:51:28 +0100
committerAntony Lesuisse <al@openerp.com>2015-02-09 01:10:36 +0100
commit0fc5860fcaa0b51c868c0a4841bd63cd33693f3e (patch)
tree201f29aa03a6402fd99fdd567d2e48ef7acfed05
parent7831dac1f1081a0cb6d3e413258010aa70561aa8 (diff)
[IMP] api decorator allow both res_id as well as id
As in python id is a builtin function name. Closes: #5027
-rw-r--r--openerp/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/api.py b/openerp/api.py
index 7c5e013308b..d01f73ba062 100644
--- a/openerp/api.py
+++ b/openerp/api.py
@@ -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: