Website Form - ReCaptcha

website_form_recaptcha
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/13.0/website_form_recaptcha
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSPedro M. Baeza, david, Alexandre Díaz, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_form
    - website
    - web
    - base
    - web_editor
    - http_routing
    - portal
    - mail
    - base_setup
    - bus
    - web_tour
    - auth_signup
    - social_media
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_frontend website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
view_website_config_settings reCaptcha Settings res.config.settings div Inherits website.res_config_settings_view_form
Models touched (4)

New fields (1)
  • website_form_recaptcha Boolean
    help='(Deprecated) Requires successful ReCaptcha for form submission.' string='Require ReCaptcha'
Public methods (0)

No public methods.

New fields (3)
  • has_google_recaptcha Boolean
    compute='_compute_has_google_recaptcha' inverse='_inverse_has_google_recaptcha' readonly=False args: 'Google reCaptcha'
  • recaptcha_key_secret Char
    readonly=False related='website_id.recaptcha_key_secret'
  • recaptcha_key_site Char
    readonly=False related='website_id.recaptcha_key_site'
Public methods (0)

No public methods.

New fields (2)
  • recaptcha_key_secret Char
  • recaptcha_key_site Char
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/12.0/website_form_recaptcha
VERSION
VERSION 1.2.5
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSJairo Llopis, mreficent, david, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Cristina Martin, cristinamartinrod, Jonathan Zong
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_form
    - website
    - web
    - base
    - web_editor
    - http_routing
    - portal
    - mail
    - base_setup
    - bus
    - web_tour
    - social_media
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_recaptcha website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
view_website_config_settings reCaptcha Settings res.config.settings div Inherits website.res_config_settings_view_form
Models touched (4)

New fields (1)
  • website_form_recaptcha Boolean
    help='Requires successful ReCaptcha for form submission.' string='Require ReCaptcha'
Public methods (0)

No public methods.

New fields (3)
  • has_google_recaptcha Boolean
    compute='_compute_has_google_recaptcha' inverse='_inverse_has_google_recaptcha' readonly=False args: 'Google reCaptcha'
  • recaptcha_key_secret Char
    readonly=False related='website_id.recaptcha_key_secret'
  • recaptcha_key_site Char
    readonly=False related='website_id.recaptcha_key_site'
Public methods (0)

No public methods.

New fields (2)
  • recaptcha_key_secret Char
  • recaptcha_key_site Char
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • validate_request(self, request, values)
    @api.model
  • validate_response(self, response, remote_ip, website=None)
    @api.model
    Validate ReCaptcha Response Params: response: str The value of 'g-recaptcha-response'. remote_ip: str The end user's IP address Raises: ValidationError on failure Returns: True on success
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/11.0/website_form_recaptcha
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSJairo Llopis, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Simone Orsi, mpanarin
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_form
    - website
    - web
    - base
    - web_editor
    - web_planner
    - http_routing
    - portal
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
assets_recaptcha website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
view_website_config_settings res.config.settings div Inherits website.res_config_settings_view_form
view_website_form reCaptcha website form website field Inherits website.view_website_form
Models touched (4)

New fields (1)
  • website_form_recaptcha Boolean
    help='Requires successful ReCaptcha for form submission.' string='Require ReCaptcha'
Public methods (0)

No public methods.

New fields (2)
  • recaptcha_key_secret Char
    related='website_id.recaptcha_key_secret'
  • recaptcha_key_site Char
    related='website_id.recaptcha_key_site'
Public methods (0)

No public methods.

New fields (2)
  • recaptcha_key_secret Char
  • recaptcha_key_site Char
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • action_validate(self, req_value, ip_addr, website=None)
    @api.model
    Backward compatibility for old implementation. Prior to API refactoring in this module (see f46d879a) pre-validation steps were made in the controller and were calling `action_validate`. This method is deprecated now. In such cases your code looked like: try: captcha_obj.action_validate( values.get(captcha_obj.RESPONSE_ATTR), ip_addr ) # Store reCAPTCHA's token in the current request object setattr(request, captcha_obj.RESPONSE_ATTR, values.get(captcha_obj.RESPONSE_ATTR)) except ValidationError: raise ValidationError([captcha_obj.RESPONSE_ATTR]) Note: the request token name to store validated value is now defined into `REQUEST_TOKEN`.
  • validate_request(self, request, values)
    @api.model
  • validate_response(self, response, remote_ip, website=None)
    @api.model
    Validate ReCaptcha Response Params: response: str The value of 'g-recaptcha-response'. remote_ip: str The end user's IP address Raises: ValidationError on failure Returns: True on success
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/10.0/website_form_recaptcha
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), LasLabs
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, OCA Transbot, Dave Lasley, oca-travis, Weblate, OCA-git-bot, Denis Robinet (ACSONE)
WEBSITE
WEBSITEhttps://laslabs.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_form
    - website
    - web
    - base
    - web_editor
    - web_planner
    - mail
    - base_setup
    - web_kanban
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_recaptcha website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
Models touched (2)

New fields (1)
  • website_form_recaptcha Boolean
    help='Requires successful ReCaptcha for form submission.' string='Require ReCaptcha'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_validate(self, response, remote_ip)
    @api.model
    Validate ReCaptcha Response Params: response: str The value of 'g-recaptcha-response'. remote_ip: str The end user's IP address Raises: ValidationError on failure Returns: True on success
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/9.0/website_form_recaptcha
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSLasLabs, Odoo Community Association
MAINTAINERS
MAINTAINERSLasLabs, Odoo Community Association
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Dave Lasley, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://laslabs.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_form
    - website
    - web
    - base
    - web_editor
    - web_planner
    - mail
    - base_setup
    - web_kanban
    - bus
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_recaptcha website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
Models touched (2)

New fields (1)
  • website_form_recaptcha Boolean
    help='Requires successful ReCaptcha for form submission.' string='Require ReCaptcha'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_validate(self, response, remote_ip)
    @api.model
    Validate ReCaptcha Response Params: response: str The value of 'g-recaptcha-response'. remote_ip: str The end user's IP address Raises: ValidationError on failure Returns: True on success
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/8.0/website_form_recaptcha
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, LasLabs, Odoo Community Association
MAINTAINERS
MAINTAINERSTecnativa, LasLabs, Odoo Community Association
COMMITTERS
COMMITTERSPaul Catinean, Jairo Llopis, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://laslabs.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:27
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - web
    - base
    - share
    - mail
    - base_setup
    - web_kanban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_recaptcha website_form_recaptcha Assets ir.ui.view qweb Inherits website.assets_frontend
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • action_validate(self, response, remote_ip)
    @api.model
    Validate ReCaptcha Response Params: response: str The value of 'g-recaptcha-response'. remote_ip: str The end user's IP address Raises: ValidationError on failure Returns: True on success