From d7356567e9f64804be51c0c3b1192d0a86c1df4e Mon Sep 17 00:00:00 2001 From: Damien Crier Date: Fri, 4 Sep 2015 10:24:40 +0200 Subject: [PATCH] [IMP] replace 'getattr' call by real call method --- web_warning_on_save/controllers/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_warning_on_save/controllers/controller.py b/web_warning_on_save/controllers/controller.py index 58342a43..67336390 100644 --- a/web_warning_on_save/controllers/controller.py +++ b/web_warning_on_save/controllers/controller.py @@ -34,7 +34,7 @@ class WarningOnSaveController(openerp.addons.web.http.Controller): """ m = req.session.model(model) try: - return getattr(m, 'check_warning_on_save')(id, req.context) + return m.check_warning_on_save(id, req.context) except xmlrpclib.Fault as e: if 'AttributeError' in e.faultString: