trytond-product_cost_manage/category.py

22 lines
639 B
Python

# The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
from trytond.modules.cost_manage.cost_manage import CategorizedCategoryMixin
__all__ = ['Category', 'CostCategory']
class Category(CategorizedCategoryMixin, metaclass=PoolMeta):
__name__ = 'product.category'
class CostCategory(metaclass=PoolMeta):
__name__ = 'cost.manage.category'
@classmethod
def __setup__(cls):
super(CostCategory, cls).__setup__()
cls.kind.selection.extend([
('product', 'Product'),
('service', 'Service')])