Skip to content

Commit

Permalink
[FIX] website_event: fix domain typo, prevent menu recreation
Browse files Browse the repository at this point in the history
location_menu_ids field domain was set to match a menu_type that doesn't
exist.

[reproduce orginal bug]
- install website_event
- open some event in debug mode
- Edit -> select "Website Submenu" -> Save
- Edit -> select "Website Submenu" -> deselect "Website Submenu" -> Save
- Open Event's page, BUG: location menu duplicated

opw-4049804

closes odoo#174891

Signed-off-by: Andrzej Pietrusiak (pian) <pian@odoo.com>
  • Loading branch information
nd-dew committed Jul 30, 2024
1 parent 27ba460 commit 41a8acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_event/models/event_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _default_cover_properties(self):
readonly=False, store=True)
location_menu_ids = fields.One2many(
"website.event.menu", "event_id", string="Location Menus",
domain=[("menu_type", "=", "location_menu")])
domain=[("menu_type", "=", "location")])
register_menu = fields.Boolean(
"Register Menu", compute="_compute_website_menu_data",
readonly=False, store=True)
Expand Down

0 comments on commit 41a8acd

Please sign in to comment.