Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
======================= | ||
Website CRM - ReCaptcha | ||
======================= | ||
|
||
Adds a Recaptcha validation to Contact form on Website | ||
|
||
|
||
Configuration | ||
============= | ||
|
||
* Obtain ReCaptcha key from `Google <http://www.google.com/recaptcha/admin>`_ | ||
* Add site key to `recaptcha.key.site` system parameter | ||
* Add secret key to `recaptcha.key.secret` system parameter | ||
|
||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
* Go to the Contact form on Website | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/186/12.0 | ||
|
||
|
||
|
||
Known Issues / Road Map | ||
======================= | ||
|
||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/website/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed feedback. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Dave Lasley <dave@laslabs.com> | ||
|
||
* `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
* Cristina Martin R. | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2016-2017 LasLabs Inc. | ||
# Copyright 2019 Tecnativa - Cristina Martin R. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Website CRM - ReCaptcha", | ||
"summary": 'Provides a ReCaptcha validation in Website Contact Form', | ||
"version": "12.0.1.0.0", | ||
"category": "Website", | ||
"website": "https://laslabs.com/", | ||
"author": "LasLabs, Tecnativa, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
'installable': True, | ||
"depends": [ | ||
"website_crm", | ||
'website_form_recaptcha', | ||
], | ||
"data": [ | ||
"data/ir_model_data.xml", | ||
'views/website_crm_template.xml', | ||
], | ||
'images': [ | ||
'static/description/website_crm_recaptcha.jpg', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- Copyright 2016-2017 LasLabs Inc. | ||
License AGPL-3 or later (http://www.gnu.org/licenses/agpl.html).--> | ||
|
||
|
||
<odoo> | ||
<record id="crm.model_crm_lead" model="ir.model"> | ||
<field name="website_form_recaptcha">True</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_crm_recaptcha | ||
# | ||
# Translators: | ||
# Bole <bole@dajmi5.com>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-03-30 02:38+0000\n" | ||
"PO-Revision-Date: 2017-03-30 02:38+0000\n" | ||
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n" | ||
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" | ||
"Language: hr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" | ||
|
||
#. module: website_crm_recaptcha | ||
#: model:ir.ui.view,arch_db:website_crm_recaptcha.contactus_form | ||
msgid "Human?" | ||
msgstr "Čovjek?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_crm_recaptcha | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: website_crm_recaptcha | ||
#: model:ir.ui.view,arch_db:website_crm_recaptcha.contactus_form | ||
msgid "Human?" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_crm_recaptcha | ||
# | ||
# Translators: | ||
# ITGeeker <alanljj@qq.com>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-05-05 02:49+0000\n" | ||
"PO-Revision-Date: 2017-05-05 02:49+0000\n" | ||
"Last-Translator: ITGeeker <alanljj@qq.com>, 2017\n" | ||
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" | ||
"zh_CN/)\n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
|
||
#. module: website_crm_recaptcha | ||
#: model:ir.ui.view,arch_db:website_crm_recaptcha.contactus_form | ||
msgid "Human?" | ||
msgstr "人类?" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
Copyright 2016-2017 LasLabs Inc. | ||
Copyright 2019 Tecnativa - Cristina Martin R. | ||
License AGPL-3 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
|
||
<odoo> | ||
<template id="contactus_form" | ||
inherit_id="website_crm.contactus_form" | ||
name="Contact Form Captcha"> | ||
<xpath expr="//div[hasclass('form-field')][last()]" position="after"> | ||
<div class="form-group row form-field o_website_form_required_custom"> | ||
<label class="col-lg-3 col-md-4 col-form-label" for="g-recaptcha-response">Human?</label> | ||
<div class="col-lg-7 col-md-8"> | ||
<span class="o_website_form_recaptcha" required="" /> | ||
</div> | ||
</div> | ||
</xpath> | ||
</template> | ||
</odoo> |