odoo/industry#1852
Created by Ashutosh Sharma (assh)
Blocked
- Merge method
- Review
-
CI
- ci/industry: (runtime 4417s)
- label
- odoo-dev:saas-19.1-sentry-7336372498-spa-resort-assh
- head
- 4adfbec2ab98aeaa285cbf813f360305a0bc4602
| odoo/industry | |
|---|---|
| saas-19.1 | #1852 missing r+ |
| saas-19.2 | |
| master |
[FIX] spa_resort: prevent error when opening the Contact Us page
Currently, an error occurs when the user opens the Contact Us page.
Steps to Reproduce:
- Install the spa_resort with demo data.
- Go to Website > Contact Us.
ValueError: Element '<xpath expr="//t[@t-name='website.contactus']//span[hasclass('s_parallax_bg')]">' cannot be located in parent view
The error starts occurring from saas-19.1 because, after this commit where the Contact Us
page was reworked to better showcase the capabilities of the website builder, the span element
was removed, but the code still references an XPath [1] that was removed from the main view.
As result, opening the Contact Us page raises this error.
This commit removes the Contact Us banner view, as the banner is no longer used in the main view.
[1]- https://github.com/odoo/industry/blob/bdbdd15f11f3304f192f44a7baf0743520ba8ae6/spa_resort/demo/website_view.xml#L308-L309
sentry-7336372498