Skip to content

Commit

Permalink
Merge e3510f8 into e7fce42
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinamartinrod committed Apr 18, 2019
2 parents e7fce42 + e3510f8 commit 870be84
Show file tree
Hide file tree
Showing 10 changed files with 202 additions and 0 deletions.
72 changes: 72 additions & 0 deletions website_crm_recaptcha/README.rst
@@ -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.
1 change: 1 addition & 0 deletions website_crm_recaptcha/__init__.py
@@ -0,0 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
26 changes: 26 additions & 0 deletions website_crm_recaptcha/__manifest__.py
@@ -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',
],
}
11 changes: 11 additions & 0 deletions website_crm_recaptcha/data/ir_model_data.xml
@@ -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>
25 changes: 25 additions & 0 deletions website_crm_recaptcha/i18n/hr.po
@@ -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?"
20 changes: 20 additions & 0 deletions website_crm_recaptcha/i18n/website_crm_recaptcha.pot
@@ -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 ""

25 changes: 25 additions & 0 deletions website_crm_recaptcha/i18n/zh_CN.po
@@ -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 "人类?"
Binary file added website_crm_recaptcha/static/description/icon.png
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.
22 changes: 22 additions & 0 deletions website_crm_recaptcha/views/website_crm_template.xml
@@ -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>

0 comments on commit 870be84

Please sign in to comment.