You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
odoo-saas-tools/saas_server/models/saas_server.py
Line 287 in 3881f00
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: