Search Here

Embed Google reCAPTCHA Validation in Odoo using Python

 In this article you will learn how to embed or implement google reCAPTCHA validation in Odoo. The purpose of using reCAPTCHA is to protect forms by using google. In this article I am going to implement reCAPTCHA v2 (Prefer is reCAPTCHA v3). 

Embed Google reCAPTCHA Validation in Odoo using Python

Implement Google reCAPTCHA Validation using Python in Odoo

To embed google reCAPTCHA, first you need to configure reCAPTCHA provided by Google. Following are the steps to create google reCAPTCHA.

Read More: Integrate Google reCaptcha for Website Login, Signup in Odoo

  1. Log into Google reCAPTCHA through your gmail account 
  2. Type label name to identify reCAPTCHA for your site
  3. Select reCAPTCHA v2 as reCAPTCHA type
  4. Set "localhost" (without double quotes) for Domain

  5. Embed Google reCAPTCHA Validation in Odoo using Python

  6. Click on Submit button to get SiteKey and SecretKey

  7. Embed Google reCAPTCHA Validation in Odoo using Python

  8. Create an Odoo Controller and template for Google reCAPTCHA

controller.py





templates.xml


Post a Comment

4 Comments

  1. what do you mean your_sitekey_goes_here how can I substitute?

    ReplyDelete
    Replies
    1. Thanks for your comment, please read point no 6 (to get your site key)

      Delete
  2. What should I write in your logic goes here!!

    ReplyDelete
    Replies
    1. You can update in a table etc... make boolean field True.. its totally up to your logic

      Delete