trytonpsk-farming/product.py

24 lines
698 B
Python

# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import fields, ModelSQL, ModelView
from trytond.pool import PoolMeta
class ProductStyle(ModelSQL, ModelView):
"Product Color"
__name__ = "product.style"
name = fields.Char('Name')
class Template(metaclass=PoolMeta):
__name__ = 'product.template'
farming = fields.Boolean('Farming')
cost_type = fields.Selection([
('', ''),
('materials', 'Materials'),
('workforce', 'Workforce'),
('indirect', 'Indirect'),
], 'Cost Type')
hts = fields.Char('HTS')