Skip to content
Snippets Groups Projects
Commit dc2e78e7e393 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:lipstick: remove useless assignment of variable

parent 260373d293d2
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,5 @@
# Do "o.login(ODOO_DB, 'admin', ODOO_ADMIN_PASS)" by hand here so we can
# grab the session ID (odoorpc does not store it anywhere).
db = database
login = login
password = password
data = o.json(
"/web/session/authenticate",
......@@ -49,8 +46,8 @@
data = o.json(
"/web/session/authenticate",
{"db": db, "login": login, "password": password},
{"db": database, "login": login, "password": password},
)
session_id = data["result"]["session_id"]
uid = data["result"]["uid"]
if uid:
context = data["result"]["user_context"]
......@@ -52,9 +49,9 @@
)
session_id = data["result"]["session_id"]
uid = data["result"]["uid"]
if uid:
context = data["result"]["user_context"]
o._env = odoorpc.env.Environment(o, db, uid, context=context)
o._env = odoorpc.env.Environment(o, database, uid, context=context)
o._login = login
o._password = password
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment