[IMP] web_timeline: black, isort

pull/2247/head
Thong Nguyen Van 2019-12-30 18:12:23 +07:00 committed by CarlosRoca13
parent 7c4bcfaaa2
commit f424a79c97
3 changed files with 13 additions and 20 deletions

View File

@ -2,28 +2,22 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
'name': "Web timeline", "name": "Web timeline",
'summary': "Interactive visualization chart to show events in time", "summary": "Interactive visualization chart to show events in time",
"version": "12.0.1.0.5", "version": "12.0.1.0.5",
"development_status": "Production/Stable", "development_status": "Production/Stable",
'author': 'ACSONE SA/NV, ' "author": "ACSONE SA/NV, "
'Tecnativa, ' "Tecnativa, "
'Monk Software, ' "Monk Software, "
'Onestein, ' "Onestein, "
'Odoo Community Association (OCA)', "Odoo Community Association (OCA)",
"category": "web", "category": "web",
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
"installable": True, "installable": True,
"website": "https://github.com/OCA/web", "website": "https://github.com/OCA/web",
'depends': [ "depends": ["web"],
'web', "qweb": ["static/src/xml/web_timeline.xml"],
], "data": ["views/web_timeline.xml"],
'qweb': [
'static/src/xml/web_timeline.xml',
],
'data': [
'views/web_timeline.xml',
],
"maintainers": ["tarteo"], "maintainers": ["tarteo"],
} }

View File

@ -3,11 +3,10 @@
from openerp import fields, models from openerp import fields, models
TIMELINE_VIEW = ("timeline", "Timeline")
TIMELINE_VIEW = ('timeline', 'Timeline')
class IrUIView(models.Model): class IrUIView(models.Model):
_inherit = 'ir.ui.view' _inherit = "ir.ui.view"
type = fields.Selection(selection_add=[TIMELINE_VIEW]) type = fields.Selection(selection_add=[TIMELINE_VIEW])