Follow-up of [1]. With [2], the contact us page was made entirely static to ease and allow more things in its customization. The customize_show option of the website_crm app which added the possibility to switch between sending emails or creating opportunities was to be removed to rather be done via the standard edit-mode option, by clicking on the form itself. Part of this option view was however kept (the auto-fill of some more values)... but it was not supposed to be kept as a customize_show view. With this, a customize_show option with the same name "Contact Form (Opportunity)" still appeared and gave the illusion that this is the way to make the form create opportunities instead of sending emails. In master with [3], the customize_show was removed but refactored to appear in the editor panel. After this commit, we remove the editor panel option that was converted by mistake. We also re-enable the view automatically via the 16.0 migration scripts. [1]: https://github.com/odoo/odoo/pull/69888#discussion_r921081562 [2]: https://github.com/odoo/odoo/commit/417138b44311a05aa206b6e2e38bb67863843c74 [3]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b Related to task-2462993 closes odoo/odoo#96145 X-original-commit: 8620c3bc71183b5ebd7801c139eab1736070d846 Related: odoo/upgrade#3690 Signed-off-by: Romain Derie (rde) <rde@odoo.com>
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Contact Form',
|
|
'category': 'Website/Website',
|
|
'sequence': 54,
|
|
'summary': 'Generate leads from a contact form',
|
|
'version': '2.1',
|
|
'description': """
|
|
Add capability to your website forms to generate leads or opportunities in the CRM app.
|
|
Forms has to be customized inside the *Website Builder* in order to generate leads.
|
|
|
|
This module includes contact phone and mobile numbers validation.""",
|
|
'depends': ['website', 'crm'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'data/crm_lead_merge_template.xml',
|
|
'data/ir_actions_data.xml',
|
|
'data/ir_model_data.xml',
|
|
'views/crm_lead_views.xml',
|
|
'views/website_visitor_views.xml',
|
|
'views/website_templates_contactus.xml',
|
|
],
|
|
'installable': True,
|
|
'auto_install': True,
|
|
'assets': {
|
|
'website.assets_editor': [
|
|
'website_crm/static/src/**/*',
|
|
],
|
|
'web.assets_tests': [
|
|
'website_crm/static/tests/**/*',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|