OdooWiki OCA HUB

Website Form - ReCaptcha

website_form_recaptcha folder_open OCA/website open_in_new
Website License: AGPL-3

Adds a ReCaptcha field widget for website forms (extends the website_form module).

Translations

This module will try to use the language of your website. If it can't find it for any reason, it will default to google API and use the language of the browser or your location.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Adds Google reCaptcha protection to website forms, so visitors must prove they are human before a form can be submitted. Site keys are configured per website in the Website settings.

This module lets you protect the forms published on your website with Google reCaptcha, reducing spam and automated submissions.

Where it appears: - In Website settings, a new "reCaptcha" option appears next to the Google Maps setting. Turning it on reveals two fields where you paste your Google reCaptcha site key and secret key, plus a link explaining how to obtain them. These values are stored per website.

What it does automatically: - When a visitor opens a website form whose model is allowed for website forms, the reCaptcha widget is loaded and inserted just above the send button. - On submission, the visitor's answer is sent to Google for verification. If the answer is missing, invalid, or the keys are wrong, the form is rejected with a clear error message instead of being saved. - The captcha language follows the language of your website when Google supports it, otherwise Google picks the language automatically.

Areas touched: - Website settings and the website record store the keys. - The website form submission process is extended so every enabled form is checked. - A deprecated "Require ReCaptcha" flag also exists on models, kept only for backward compatibility.

Note: the module relies on Google's external service, so an internet connection and valid Google reCaptcha credentials are required.

Depends on

website_form

Required by other modules

Models and fields (4)
  • website · extends an existing modelrecaptcha_key_site, recaptcha_key_secret
  • ir.model · extends an existing modelwebsite_form_recaptcha (Require ReCaptcha)
  • res.config.settings · extends an existing modelrecaptcha_key_site, has_google_recaptcha (Google reCaptcha), recaptcha_key_secret
  • website.form.recaptcha · new model

Text generated by AI (DeepSeek) from reading the Odoo 13.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 13.0

First of all you must obtain a ReCaptcha key from Google

Multi website setup

  • Go to website settings
  • Select the website you want to add / edit the recaptcha key
  • Set site key and secret key

For testing purposes you can set this keys (https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do):

  • Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
  • Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

To use this module, you need to:

  • Already have a form-enabled model (refer to website_form docs)
  • The recaptcha code will be injected dinamically.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.