diff --git a/doc/cla/individual/Albin-John.md b/doc/cla/individual/Albin-John.md new file mode 100644 index 00000000000..9415ecdd344 --- /dev/null +++ b/doc/cla/individual/Albin-John.md @@ -0,0 +1,11 @@ +India, 2021-10-09 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Albin John albin_john@tutamail.com https://github.com/Albin-John diff --git a/odoo/service/db.py b/odoo/service/db.py index 0c832c1c615..639379f46f9 100644 --- a/odoo/service/db.py +++ b/odoo/service/db.py @@ -62,7 +62,7 @@ def _initialize_db(id, db_name, demo, lang, user_password, login='admin', countr registry = odoo.modules.registry.Registry.new(db_name, demo, None, update_module=True) - with closing(db.cursor()) as cr: + with closing(registry.cursor()) as cr: env = odoo.api.Environment(cr, SUPERUSER_ID, {}) if lang: