mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-26 22:22:00 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import res_users
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class Users(models.Model):
|
||||
_inherit = 'res.users'
|
||||
|
||||
def get_totp_invite_url(self):
|
||||
if not self._is_internal():
|
||||
return '/my/security'
|
||||
else:
|
||||
return super(Users, self).get_totp_invite_url()
|
||||
Loading…
Add table
Add a link
Reference in a new issue