mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-23 10:32:07 +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,17 @@
|
|||
# -*- 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'
|
||||
|
||||
recaptcha_public_key = fields.Char("Site Key", config_parameter='recaptcha_public_key', groups='base.group_system')
|
||||
recaptcha_private_key = fields.Char("Secret Key", config_parameter='recaptcha_private_key', groups='base.group_system')
|
||||
recaptcha_min_score = fields.Float(
|
||||
"Minimum score",
|
||||
config_parameter='recaptcha_min_score',
|
||||
groups='base.group_system',
|
||||
default="0.7",
|
||||
help="By default, should be one of 0.1, 0.3, 0.7, 0.9.\n1.0 is very likely a good interaction, 0.0 is very likely a bot"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue