[11.0] Add support for sets in manifest
Bug Description
In some strange manifests, some authors use sets in manifest.
So, we have to implement custom JSON encoder, to automatically convert set
objects to list
.
See example: https://stackoverflow.com/questions/8230315/how-to-json-serialize-sets
The fix have to be added to 11.0 and then forward ported to 12, 13, 14, 15
Do not forget to add test for this case
Example of such manifest is below (take a look at assets
section):
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
"name": "Vista Backend Theme V15",
"description": """Minimalist and elegant backend theme for Odoo 14, Backend Theme, Theme""",
"summary": "Vista Backend Theme V15 is an attractive theme for backend",
"category": "Themes/Backend",
"version": "15.0.1.0.1",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
"depends": ['base', 'web', 'mail'],
"data": [
'security/ir.model.access.csv',
'views/icons.xml',
'views/layout.xml',
'views/theme.xml',
'views/assets.xml',
'data/theme_data.xml',
],
'assets': {
'web.assets_backend': {
'/vista_backend_theme/static/src/scss/theme.scss',
'/vista_backend_theme/static/src/js/systray.js',
'/vista_backend_theme/static/src/js/load.js',
'/vista_backend_theme/static/src/js/chrome/sidebar_menu.js',
},
'web.assets_frontend': {
'/vista_backend_theme/static/src/scss/login.scss',
'/vista_backend_theme/static/src/scss/login.scss',
},
'web.assets_qweb': {
'/vista_backend_theme/static/src/xml/systray.xml',
'/vista_backend_theme/static/src/xml/top_bar.xml',
},
},
'images': [
'static/description/banner.png',
'static/description/theme_screenshot.png',
],
'license': 'LGPL-3',
'pre_init_hook': 'test_pre_init_hook',
'post_init_hook': 'test_post_init_hook',
'installable': True,
'application': False,
'auto_install': False,
}