[FIX] correct retro-compatibility with 7.0 route()
bzr revid: chs@openerp.com-20140130125827-j1xzt4qowg1ew3zf
This commit is contained in:
parent
5322b98647
commit
51cabd2c69
|
@ -204,7 +204,7 @@ class WebRequest(object):
|
|||
kwargs.update(self.func_arguments)
|
||||
|
||||
# Backward for 7.0
|
||||
if getattr(self.func, '_first_arg_is_req', False):
|
||||
if getattr(self.func.method, '_first_arg_is_req', False):
|
||||
args = (request,) + args
|
||||
# Correct exception handling and concurency retry
|
||||
@service_model.check
|
||||
|
|
Loading…
Reference in New Issue