Since 29db699e9b, auth_top depends of mail module, which lead to delay auth_totp
installation - not during DB creation anymore. As mail module is not installed
during DB creation, once an app that depends on mail is installed after DB
creation, auth_top module is finally installed and the session token now depends
auth_top module. As a result, the user is automatically logged out.
This commit moves the invite mail (and the dependance to 'mail' module) to a
new bridge module. Auth_totp module will now be reinstalled during DB creation
automatically.
Task-2638538
Parent Task-2487630
COM PR: odoo/odoo#76022
UPG PR: odoo/upgrade#2808
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
16 lines
650 B
XML
16 lines
650 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Action called from the contextual menu -->
|
|
<record model="ir.actions.server" id="action_disable_totp">
|
|
<field name="name">Disable two-factor authentication</field>
|
|
<field name="model_id" ref="base.model_res_users"/>
|
|
<field name="binding_model_id" ref="base.model_res_users"/>
|
|
<field name="binding_view_types">list</field>
|
|
<field name="state">code</field>
|
|
<field name="code">
|
|
action = records.action_totp_disable()
|
|
</field>
|
|
<field name="groups_id" eval="[(4, ref('base.group_erp_manager'))]"/>
|
|
</record>
|
|
</odoo>
|