summaryrefslogtreecommitdiff
path: root/addons/base_setup/views
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2020-04-24 10:50:28 +0000
committerfja-odoo <fja@odoo.com>2020-06-05 10:58:50 +0000
commit541148613451f4c14a299672d91c4397d8a9f6de (patch)
treec798cd359c3960d4ae86ebc9847666a3a30bf4a6 /addons/base_setup/views
parentfea1706f275e88a0d28dd2776c6aa0dd62c1bf3d (diff)
[IMP] google_recaptcha, *: integrate recaptchaV3
* = base_setup, website_form, website_sale, website_crm, crm_iap_lead_website, website_hr_recruitment, website_mass_mailing Integrate reCaptchaV3 on website_form submit and website_mass_mailing subscription. You can now use ReCaptchaV3 to add reCaptcha verification in any module using google_recaptcha. Also added a better error management on the form with custom messages. task-2217980 closes odoo/odoo#48466 Related: odoo/enterprise#9649 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/base_setup/views')
-rw-r--r--addons/base_setup/views/res_config_settings_views.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml
index 1ddab7646ff..07f41954c03 100644
--- a/addons/base_setup/views/res_config_settings_views.xml
+++ b/addons/base_setup/views/res_config_settings_views.xml
@@ -354,6 +354,20 @@
</div>
</div>
</div>
+ <div class="col-12 col-lg-6 o_setting_box" id="recaptcha">
+ <div class="o_setting_left_pane">
+ <field name="module_google_recaptcha"/>
+ </div>
+ <div class="o_setting_right_pane" id="website_recaptcha_settings">
+ <label for="module_google_recaptcha"/>
+ <div class="text-muted">
+ reCAPTCHA is a free service that protects your website from spam and abuse.
+ </div>
+ <div class="content-group" attrs="{'invisible': [('module_google_recaptcha', '=', False)]}" id="recaptcha_warning">
+ <div class="mt16 text-warning"><strong>Save</strong> this page and come back here to set up reCaptcha.</div>
+ </div>
+ </div>
+ </div>
</div>
<widget name='res_config_dev_tool'/>
<div id='about'>