Files
tryton/trytond/ir/module/category.py
T

19 lines
465 B
Python

"Category"
from trytond.osv import fields, OSV
class Category(OSV):
"Module Category"
_name = "ir.module.category"
_description = __doc__
_columns = {
'name': fields.Char("Name", size=128, required=True),
'parent': fields.Many2One('ir.module.category',
'Parent Category', select=1),
'childs': fields.One2Many('ir.module.category',
'parent', 'Parent Category'),
}
_order = 'name'
Category()