[FIX] website_membership: correctly check if customize view is active
Commit 5804246e0f introduced some improvements to speed up performances.
One of them was to check if a customize_show view was active or not but the
condition was on view.customize_show instead of view.active.
Thus, as that view is always a customize_show, the condition would always be
met.
closes odoo/odoo#29414
This commit is contained in:
@@ -103,7 +103,7 @@ class WebsiteMembership(http.Controller):
|
||||
|
||||
# get google maps localization of partners
|
||||
google_map_partner_ids = []
|
||||
if request.env.ref('website_membership.opt_index_google_map').customize_show:
|
||||
if request.env.ref('website_membership.opt_index_google_map').active:
|
||||
google_map_partner_ids = MembershipLine.search(line_domain).get_published_companies(limit=2000)
|
||||
|
||||
search_domain = [('membership_state', '=', 'free'), ('website_published', '=', True)]
|
||||
|
||||
Reference in New Issue
Block a user