7751c1bfb92f4e747ddade50f6091cf998c3fe7d
Commita2ae219d4efixed the customize_template_get function(s) which had been modified for the 10.0 web_studio release. While the fix also reorganized the structure to make it more efficient and understandable, it promised that the function would be refactored in master. This is what this commit does. The customize_template_get route of the website module was also removed with commit5a030db3ebas it was an useless duplicate of the web_editor customize_template_get route. The old route handled two totally different features of odoo: getting all the page-related views to allow their edition with the HTML editor and getting the "toggable views" which appear in the "Customize" website menu. The parameter "full" allowed to determine which one the route was supposed to do and was useless until website was installed to add its feature (by extending the route behavior). In both cases, views informations are returned, only the number of views differs. The above-mentionned fix already did part of the refactoring by returning the same info structure for each view in both cases. Now, the function has been split. The web_editor customize_template_get route is renamed as get_assets_editor_resources and returns the info the HTML editor needs to work (the "assets" term is in prevision of the new LESS editor). A new website route "get_switchable_related_views" has been created to return the info the "Customize" website menu needs. Both use the renamed ir.ui.view function "get_related_views" (old ir.ui.view customize_template_get function) which now returns a recordset and not a list of dictionnaries.
…
…
…
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, Purchase Management, ...
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.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/setup/setup_dev.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./setup/setup_dev.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./setup/setup_dev.py setup_git_review
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%