diff options
| author | Jigar Patel <jat@openerp.com> | 2019-04-19 07:16:56 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2019-04-19 10:32:19 +0000 |
| commit | e834de3d1070654968be8ebc22175aae6e1cdc68 (patch) | |
| tree | e770133fe4ac8d51bf2cee527b15a51eb33f6d32 | |
| parent | 759350ce0b385b043b567ec8134d7803300b7361 (diff) | |
[IMP] website_crm: make CRM contact form editable by form builder
Add t-ignore to the DOM so it can be edited.
Also, now that website_form already add a form to contactus page, we need to
xpath that form.
task-32212
| -rw-r--r-- | addons/website_crm/views/website_crm_templates.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_crm/views/website_crm_templates.xml b/addons/website_crm/views/website_crm_templates.xml index 01891b705a7..31335c60b12 100644 --- a/addons/website_crm/views/website_crm_templates.xml +++ b/addons/website_crm/views/website_crm_templates.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> - <template id="contactus_form" name="Contact Form" inherit_id="website.contactus" customize_show="True"> - <xpath expr="//div[@name='mail_button']" position="replace"> - <div> + <template id="contactus_form" name="Contact Form (Opportunity)" inherit_id="website_form.contactus_form" customize_show="True"> + <xpath expr="//form[@id='contactus_form']" position="replace"> + <div t-ignore="true"> <form action="/website_form/" method="post" data-model_name="crm.lead" data-success_page="/contactus-thank-you" class="s_website_form container-fluid mt32" enctype="multipart/form-data" data-editable-form="false"> <div class="form-group row form-field o_website_form_required_custom"> <label class="col-lg-3 col-md-4 col-form-label" for="contact_name">Your Name</label> |
