-
Notifications
You must be signed in to change notification settings - Fork 594
Description
when we use the config wizard to execute a method it throws an error, checking the code, we think maybe using the client_env this problem could be solved.
getattr(client_env[model], method)()
odoo.addons.saas_server.controllers.main: global name 'request' is not defined
Traceback (most recent call last):
File "/opt/odoo/addons/10.0/odoo-saas-tools/saas_server/controllers/main.py", line 23, in wrap
return f(*args, **kw)
File "/opt/odoo/addons/10.0/odoo-saas-tools/saas_server/controllers/main.py", line 142, in upgrade_database
result = client.upgrade_database(data=state.get('data'))
File "/opt/odoo/addons/10.0/odoo-saas-tools/saas_server/models/saas_server.py", line 253, in upgrade_database
return self._upgrade_database(env, **kwargs)
File "/opt/odoo/addons/10.0/odoo-saas-tools/saas_server/models/saas_server.py", line 287, in _upgrade_database
getattr(request.registry[model], method)()
NameError: global name 'request' is not defined
| getattr(request.registry[model], method)() |
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.