mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-24 05:22:03 +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,24 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
auth_signup_reset_password = fields.Boolean(
|
||||
string='Enable password reset from Login page',
|
||||
config_parameter='auth_signup.reset_password')
|
||||
auth_signup_uninvited = fields.Selection(
|
||||
selection=[
|
||||
('b2b', 'On invitation'),
|
||||
('b2c', 'Free sign up'),
|
||||
],
|
||||
string='Customer Account',
|
||||
default='b2c',
|
||||
config_parameter='auth_signup.invitation_scope')
|
||||
auth_signup_template_user_id = fields.Many2one(
|
||||
'res.users',
|
||||
string='Template user for new users created through signup',
|
||||
config_parameter='base.template_portal_user_id')
|
||||
Loading…
Add table
Add a link
Reference in a new issue