Files
tryton/modules/production_routing/product.py
T

24 lines
749 B
Python
Raw Normal View History

2016-03-21 21:02:37 +01:00
# 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
2021-12-11 17:58:43 +01:00
from trytond.pool import PoolMeta
2016-03-21 21:02:37 +01:00
from trytond.pyson import Eval
2018-06-26 19:11:49 +02:00
class ProductBom(metaclass=PoolMeta):
2016-03-21 21:02:37 +01:00
__name__ = 'product.product-production.bom'
routing = fields.Many2One(
'production.routing', "Routing", ondelete='CASCADE',
2016-03-21 21:02:37 +01:00
domain=[
('boms', '=', Eval('bom', 0)),
])
2016-06-24 09:24:46 +02:00
2018-06-26 19:11:49 +02:00
class ProductionLeadTime(metaclass=PoolMeta):
2016-06-24 09:24:46 +02:00
__name__ = 'production.lead_time'
routing = fields.Many2One('production.routing', 'Routing',
ondelete='CASCADE',
domain=[
('boms', '=', Eval('bom', 0)),
])