Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions website_crm_recaptcha/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.. 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/10.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>

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.
3 changes: 3 additions & 0 deletions website_crm_recaptcha/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
23 changes: 23 additions & 0 deletions website_crm_recaptcha/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc.
# 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": "11.0.1.0.0",
"category": "Website",
"website": "https://laslabs.com/",
"author": "LasLabs, 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',
],
}
13 changes: 13 additions & 0 deletions website_crm_recaptcha/data/ir_model_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?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>
24 changes: 24 additions & 0 deletions website_crm_recaptcha/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\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?"
24 changes: 24 additions & 0 deletions website_crm_recaptcha/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\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 "人类?"
21 changes: 21 additions & 0 deletions website_crm_recaptcha/views/website_crm_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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>
<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 form-field o_website_form_required_custom">
<label class="col-md-3 col-sm-4 control-label" for="g-recaptcha-response">Human?</label>
<div class="col-md-7 col-sm-8">
<span class="o_website_form_recaptcha" />
</div>
</div>
</xpath>
</template>
</odoo>