diff --git a/website_crm_recaptcha/README.rst b/website_crm_recaptcha/README.rst new file mode 100755 index 0000000000..c4ffbcfeff --- /dev/null +++ b/website_crm_recaptcha/README.rst @@ -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 `_ +* 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 +`_. 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 + +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. diff --git a/website_crm_recaptcha/__init__.py b/website_crm_recaptcha/__init__.py new file mode 100755 index 0000000000..84b1ff7941 --- /dev/null +++ b/website_crm_recaptcha/__init__.py @@ -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). diff --git a/website_crm_recaptcha/__manifest__.py b/website_crm_recaptcha/__manifest__.py new file mode 100755 index 0000000000..1cd281f61d --- /dev/null +++ b/website_crm_recaptcha/__manifest__.py @@ -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', + ], +} diff --git a/website_crm_recaptcha/data/ir_model_data.xml b/website_crm_recaptcha/data/ir_model_data.xml new file mode 100644 index 0000000000..6a452585dd --- /dev/null +++ b/website_crm_recaptcha/data/ir_model_data.xml @@ -0,0 +1,13 @@ + + + + + + + + True + + \ No newline at end of file diff --git a/website_crm_recaptcha/i18n/hr.po b/website_crm_recaptcha/i18n/hr.po new file mode 100644 index 0000000000..0b2375566b --- /dev/null +++ b/website_crm_recaptcha/i18n/hr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_recaptcha +# +# Translators: +# Bole , 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 , 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?" diff --git a/website_crm_recaptcha/i18n/zh_CN.po b/website_crm_recaptcha/i18n/zh_CN.po new file mode 100644 index 0000000000..a82c3a923a --- /dev/null +++ b/website_crm_recaptcha/i18n/zh_CN.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_recaptcha +# +# Translators: +# ITGeeker , 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 , 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 "人类?" diff --git a/website_crm_recaptcha/views/website_crm_template.xml b/website_crm_recaptcha/views/website_crm_template.xml new file mode 100644 index 0000000000..eb83dbeff1 --- /dev/null +++ b/website_crm_recaptcha/views/website_crm_template.xml @@ -0,0 +1,21 @@ + + + + + + +