d9c260de4b539c2350d4e0ce04007635abec9928
Before this commit, there were multiple issues related to the creation of `theme.website.menu` records in a theme: - Not possible to add a menu in the existing website's navbar - When one would try to create a `theme.website.menu` that menu would be created for every website when instaling the theme on a particular website, which is terribly wrong as it goes against the multi-website holy grail rule: when editing a website, do not impact other websites. - Not possible to create a mega menu Now, one can create a menu: - as a navbar top menu - as a child menu of another theme menu - as a whole new menu hierarchy (top level container) This is not possible to create a menu as a child of a website.menu, like adding 2 submenu to the existing contact us menu. First, this is technically impossible to do without introducing yet another hack code in the `website.menu` write. Indeed, there is no way to identify a generic menu's website copies. Neither through a direct DB field, neither through a persistent info like we do with the `key` attribute of views. So there is no reliable way to tell the system to add a menu below the "Contact Us" menu of the website, as this is just a menu copied when the website was created. We could obviously later add a `key` field or something like that to identify an XML menu's copies. Second, there is a workaround as one has to recreate the website.menu and delete the original one (through a `<function/>` record). Third, this should not be the main use case about menu creation in themes. ---------- Some fields were also missing regarding the `website.page` model. ---------- A stable attempt is done at [1], this is where the current commit originates from. As the Odoo 17 release is quickly approaching, it was decided to first write the proper IMP in master from which we will see what can be backported and how, if needed. [1]: https://github.com/odoo/odoo/pull/86669 Part-of: odoo/odoo#99099
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%