Browse Source

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

pull/144/head
Damien Crier 9 years ago
parent
commit
d7356567e9
  1. 2
      web_warning_on_save/controllers/controller.py

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

Loading…
Cancel
Save