Before this rev., the pie_chart widget was rendered from scratch with nv.d3 and we had duplicated code. In comparison mode, two widgets were instancied and it was a bit difficult to synchronize the size of these svg graphs. nv.d3 graphs are attached when the dom is ready because it needs to calculate the available space. UI bugs can appear if the dom changes... .update() must be executed on the graph to avoid this as we already do in graph renderer. So now, the rendering of the pie_chart widget is done by the graph renderer. As comparaison mode is supported by the rendering, only one widget needs to be instancied. Task ID: 1835644
35 lines
925 B
Python
35 lines
925 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Web',
|
|
'category': 'Hidden',
|
|
'version': '1.0',
|
|
'description':
|
|
"""
|
|
Odoo Web core module.
|
|
========================
|
|
|
|
This module provides the core of the Odoo Web Client.
|
|
""",
|
|
'depends': ['base'],
|
|
'auto_install': True,
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'views/webclient_templates.xml',
|
|
'views/report_templates.xml',
|
|
'data/res_company.xml',
|
|
'data/report_layout.xml',
|
|
],
|
|
'qweb': [
|
|
"static/src/xml/base.xml",
|
|
"static/src/xml/kanban.xml",
|
|
"static/src/xml/menu.xml",
|
|
"static/src/xml/pie_chart.xml",
|
|
"static/src/xml/rainbow_man.xml",
|
|
"static/src/xml/report.xml",
|
|
"static/src/xml/web_calendar.xml",
|
|
],
|
|
'bootstrap': True, # load translations for login screen
|
|
}
|