-
- Downloads
[FIX] website: restore edit menu dialog
Since saas-12.5, with recent ORM changes, writing on non-existing fields
does not trigger a warning anymore but instead crashes. This revealed
that the 12.0 "Edit Menu" dialog was doing some of that. Indeed,
depending on what was edited, we ended up writing on the 'is_homepage'
field, the 'text' field, the 'isNewWindow' field, ... which do not
exist.
This commit takes advantage of the fix to also lint the dialog code and
convert some of it to ES6.
Discovered while working on task-1925319
closes odoo/odoo#36204
Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
Showing
- addons/website/models/website_menu.py 15 additions, 16 deletionsaddons/website/models/website_menu.py
- addons/website/static/src/js/menu/content.js 49 additions, 48 deletionsaddons/website/static/src/js/menu/content.js
- addons/website/static/src/xml/website.contentMenu.xml 2 additions, 2 deletionsaddons/website/static/src/xml/website.contentMenu.xml
Please register or sign in to comment