You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="assets_editor_recaptcha" name="GoogleRecaptcha" inherit_id="website.layout">
  5. <xpath expr="//body" position="inside">
  6. <script src="https://www.google.com/recaptcha/api.js"></script>
  7. </xpath>
  8. </template>
  9. <record id="view_website_form" model="ir.ui.view">
  10. <field name="name">website.form</field>
  11. <field name="model">website</field>
  12. <field name="inherit_id" ref="website.view_website_form" />
  13. <field name="arch" type="xml">
  14. <div name="social_media" position="after">
  15. <div name="goole_recaptcha">
  16. <separator string="Google reCAPTCHA Reloaded"/>
  17. <group name="social_media">
  18. <field name="recaptcha_site_key" placeholder="Your reCAPTCHA site key"/>
  19. <field name="recaptcha_private_key" placeholder="Your reCAPTCHA private key"/>
  20. </group>
  21. </div>
  22. </div>
  23. </field>
  24. </record>
  25. </data>
  26. </openerp>