From 0fc5860fcaa0b51c868c0a4841bd63cd33693f3e Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 2 Feb 2015 16:51:28 +0100 Subject: [PATCH] [IMP] api decorator allow both res_id as well as id As in python id is a builtin function name. Closes: #5027 --- openerp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: