web/web_dashboard_tile/models/tile_category.py

18 lines
500 B
Python

# -*- coding: utf-8 -*-
# © 2018 Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import fields, models
class TileCategory(models.Model):
_name = "tile.category"
_description = "Dashboard Tile Category"
_order = "sequence asc"
name = fields.Char(required=True)
sequence = fields.Integer(
help="Used to order the tile categories", default=0
)
fold = fields.Boolean("Folded by default")