mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] replace 'getattr' call by real call method
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user