Daily updates from Odoo
Navigate
Branch
Saturday, June 12, 2021
2 changes
Code cleanup and technical improvements
This update refreshes the internal way Odoo combines and retrieves screen layouts in Studio. It supports cleaner, more maintainable view handling without introducing a major visible change for business users.
Original PR description
Aggregation of all the changes related to [Task 2463632](https://www.odoo.com/web#id=2463632&model=project.task&view_type=form&cids=1&menu_id=5195) and its sub-tasks.
Miscellaneous changes
Currently, we save globalFilters with the ID of model used to filter (i.e. the id of the corresponding `ir.model` record) and use it when loading the filter data inside the side panel. Unfortunately, this is only relevant at runtime as the id of a given model can change on every database, depending on the number of existing ir.model and even their creation order. This means that a spreadsheet cannot be shared accross similar databases and might even break inside the same database in cas
Original PR description
Currently, we save globalFilters with the ID of model used to filter (i.e. the id of the corresponding `ir.model` record) and use it when loading the filter data inside the side panel. Unfortunately,…
Currently, we save globalFilters with the ID of model used to filter (i.e. the id of the corresponding `ir.model` record) and use it when loading the filter data inside the side panel. Unfortunately, this is only relevant at runtime as the id of a given model can change on every database, depending on the number of existing ir.model and even their creation order. This means that a spreadsheet cannot be shared accross similar databases and might even break inside the same database in case of a backup/restore. As we also store the name of the model, we can take advantage of it when loading the filter data and use the name to recover the model id. Practically, this was breaking our demo templates that contained filters as it is equivalent to loading a spreadsheet from another database. task [2520389](https://www.odoo.com/web#id=2520389&action=333&active_id=2328&model=project.task&view_type=form&cids=1&menu_id=4720) Forward-Port-Of: odoo/enterprise#18880 Forward-Port-Of: odoo/enterprise#18624