[FIX] website_event: submenu page not found
Before this commit: When disabling the submenu for events, it would show a 404 Page Not Found error. After this commit: the current behavior is that when the submenu is disabled, it redirects to the /register page of the event. task-3658380 closes odoo/odoo#160544 X-original-commit: ea140d5cfea992caad7207ff6499a46a8f575729 Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com> Signed-off-by: Aashish Thakur (aath) <aath@odoo.com>
This commit is contained in:
@@ -17,9 +17,10 @@ options.registry.WebsiteEvent = options.Class.extend({
|
||||
this.eventId = this._getEventObjectId();
|
||||
// Only need for one RPC request as the option will be destroyed if a
|
||||
// change is made.
|
||||
const rpcData = await this.orm.read("event.event", [this.eventId], ["website_menu"]);
|
||||
const rpcData = await this.orm.read("event.event", [this.eventId], ["website_menu","website_url"]);
|
||||
this.data.reload = this.currentWebsiteUrl;
|
||||
this.websiteMenu = rpcData[0]['website_menu'];
|
||||
this.data.reload = rpcData[0]['website_url'];
|
||||
return res;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user