diff options
| author | Stefan Rijnhart <stefan@therp.nl> | 2015-02-02 16:51:28 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2015-02-09 01:10:36 +0100 |
| commit | 0fc5860fcaa0b51c868c0a4841bd63cd33693f3e (patch) | |
| tree | 201f29aa03a6402fd99fdd567d2e48ef7acfed05 /openerp/api.py | |
| parent | 7831dac1f1081a0cb6d3e413258010aa70561aa8 (diff) | |
[IMP] api decorator allow both res_id as well as id
As in python id is a builtin function name.
Closes: #5027
Diffstat (limited to 'openerp/api.py')
| -rw-r--r-- | openerp/api.py | 2 |
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: |
