[IMP] replace 'getattr' call by real call method

This commit is contained in:
Damien Crier
2015-09-04 10:24:40 +02:00
parent bf8d74f8bd
commit d7356567e9

View File

@@ -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: