From 51cabd2c6923a61edf44dd3108a4c007b6980de2 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 30 Jan 2014 13:58:27 +0100 Subject: [PATCH] [FIX] correct retro-compatibility with 7.0 route() bzr revid: chs@openerp.com-20140130125827-j1xzt4qowg1ew3zf --- openerp/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index 622177bf5b4..7ac634df5ce 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -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