Skip to content

Commit

Permalink
[IMP] web_timeline: black, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
thoongnv committed Dec 30, 2019
1 parent 7bbaedc commit c8892c1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=setuptools
known_third_party=openerp,setuptools
26 changes: 10 additions & 16 deletions web_timeline/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
5 changes: 2 additions & 3 deletions web_timeline/models/ir_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
2 changes: 1 addition & 1 deletion web_timeline/static/src/xml/web_timeline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c8892c1

Please sign in to comment.