You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
427 B
12 lines
427 B
# Copyright 2020 Akretion (https://www.akretion.com).
|
|
# @author Pierrick Brun <pierrick.brun@akretion.com>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import SUPERUSER_ID, api
|
|
|
|
|
|
def post_init_hook(cr, registry):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
env["res.users"].search([("profile_id", "=", False)]).profile_id = env.ref(
|
|
"base_user_role_profile.default_profile"
|
|
)
|