The post_init/post_migrate hook now: - Uses no_reset_password context to skip Odoo's invitation email flow - Writes a res_users_log row so the user shows as Confirmed instead of Pending Invitations (Odoo 18 derives state from log presence) - Idempotently ensures the partner_activeblue_ai external ID points at the bot's partner so env.ref() resolves in ab_ai_mail.py Discovered while fixing the bot DM flow on miaai: even after the user was created, Discuss showed it as Pending until a res_users_log row was inserted manually.
2.1 KiB
2.1 KiB