Files
enterprise/knowledge/models/knowledge_article_template_category.py
2024-05-08 09:30:44 +08:00

16 lines
597 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ArticleTemplateCategory(models.Model):
"""This model represents the categories of the article templates."""
_name = "knowledge.article.template.category"
_description = "Article Template Category"
_order = "sequence ASC, id ASC"
name = fields.Char(string="Title", translate=True, required=True)
sequence = fields.Integer("Category Sequence", default=0, required=True,
help="It determines the display order of the category")