Repository
OCA/website · module folder · Try on Runboat
Module version
1.0.0
Category
Website
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/website
Last tracking update
2026-08-07 08:09:25
Authors
Tech Receptives, Odoo Community Association (OCA), Elico Corp, Coop IT Easy SC
Maintainers
Tech Receptives, Odoo Community Association (OCA), Elico Corp, Coop IT Easy SC
Committers
Weblate, OCA-git-bot, oca-ci, hugues de keyzer
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
cooperator_website_recaptcha
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
recaptcha_widget reCAPTCHA widget ir.ui.view qweb New
res_config_settings_view_form Website settings res.config.settings form Inherits website.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (3)
  • recaptcha_v2_enabled Boolean
    readonly=False related='website_id.recaptcha_v2_enabled'
  • recaptcha_v2_secret_key Char
    readonly=False related='website_id.recaptcha_v2_secret_key'
  • recaptcha_v2_site_key Char
    readonly=False related='website_id.recaptcha_v2_site_key'
Public methods (0)

No public methods.

New fields (3)
  • recaptcha_v2_enabled Boolean
    args: 'Enable reCAPTCHA v2'
  • recaptcha_v2_secret_key Char
    args: 'Secret Key (v2)'
  • recaptcha_v2_site_key Char
    args: 'Site Key (v2)'
Public methods (1)
  • is_recaptcha_v2_valid(self, form_values)
    Checks whether the reCAPTCHA v2 challenge has been correctly solved. form_values must be a dictionary containing the form values. Returns a (bool, str) tuple. The first element tells whether the CAPTCHA is valid or not. The second is the error message when applicable (or an empty string). If reCAPTCHA is disabled in the settings, this method behaves as if the CAPTCHA was correctly solved, but without doing any check.