trytonpsk-sale_pos_frontend.../bom.py

16 lines
487 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
from trytond.pool import PoolMeta
from decimal import Decimal
def round_dec(number):
return Decimal(number.quantize(Decimal('.01')))
class BOM(metaclass=PoolMeta):
__name__ = 'production.bom'
tasks_configuration = fields.One2Many('production.configuration_task', 'ldm', 'Tasks Configuration')