3
0
Fork 0

[IMP] web_timeline: black, isort

15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
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).
{
'name': "Web timeline",
'summary': "Interactive visualization chart to show events in time",
"name": "Web timeline",
"summary": "Interactive visualization chart to show events in time",
"version": "12.0.1.0.5",
"development_status": "Production/Stable",
'author': 'ACSONE SA/NV, '
'Tecnativa, '
'Monk Software, '
'Onestein, '
'Odoo Community Association (OCA)',
"author": "ACSONE SA/NV, "
"Tecnativa, "
"Monk Software, "
"Onestein, "
"Odoo Community Association (OCA)",
"category": "web",
"license": "AGPL-3",
"application": False,
"installable": True,
"website": "https://github.com/OCA/web",
'depends': [
'web',
],
'qweb': [
'static/src/xml/web_timeline.xml',
],
'data': [
'views/web_timeline.xml',
],
"depends": ["web"],
"qweb": ["static/src/xml/web_timeline.xml"],
"data": ["views/web_timeline.xml"],
"maintainers": ["tarteo"],
}

View File

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

View File

@ -3,7 +3,7 @@
<div class="oe_timeline_view">
<div class="oe_timeline_buttons">
<button class="btn btn-default btn-sm oe_timeline_button_today">Today</button>
<div class="btn-group btn-sm">
<button class="btn btn-default oe_timeline_button_scale_day">Day</button>
<button class="btn btn-default oe_timeline_button_scale_week">Week</button>