You can enable it in base_setup when you need it. Depends of base_setup and not ir_http or website because you need to be able to enable it for login form e.g. closes odoo/odoo#61520 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
18 lines
752 B
Python
18 lines
752 B
Python
# -*- 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.5",
|
|
help="Should be between 0.0 and 1.0.\n1.0 is very likely a good interaction, 0.0 is very likely a bot"
|
|
)
|