* = 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>
32 lines
1.5 KiB
XML
32 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.web.recaptcha</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<div id="recaptcha_warning" position="replace">
|
|
<div attrs="{'invisible': [('module_google_recaptcha', '=', False)]}">
|
|
<div class="content-group mt16">
|
|
<label for="recaptcha_public_key" class="o_light_label"/>
|
|
<field name="recaptcha_public_key"/>
|
|
</div>
|
|
<div class="content-group">
|
|
<label for="recaptcha_private_key" class="o_light_label"/>
|
|
<field name="recaptcha_private_key"/>
|
|
</div>
|
|
<div class="content-group">
|
|
<label for="recaptcha_min_score" class="o_light_label"/>
|
|
<field name="recaptcha_min_score"/>
|
|
</div>
|
|
<div>
|
|
<a href="https://www.google.com/recaptcha/admin/create" class="oe_link" target="_blank">
|
|
<i class="fa fa-arrow-right"/> Generate site/secret keys for v3 reCaptcha type
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</odoo>
|