-
- Downloads
[FIX] website, website_crm: remove useless confusing contact form option
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. After this commit, we remove the customize_show of the view at the same time as introducing a hack to not show the option for existing users. For users that disabled the view (but were thus not supposed to be able to), we hide it too. The feature does not do much and is not a very discoverable feature anyway, best removing the confusion entirely. If someone somehow wants that very technical "more auto-fill via the URL" feature, they can still enable the view again via the backend. We will also re-enable the view automatically in 16.0. [1]: https://github.com/odoo/odoo/pull/69888#discussion_r921081562 [2]: https://github.com/odoo/odoo/commit/417138b44311a05aa206b6e2e38bb67863843c74 Related to task-2462993 closes odoo/odoo#96024 Signed-off-by:Romain Derie (rde) <rde@odoo.com>
Please register or sign in to comment