Migrate to python 3
This commit is contained in:
parent
47915d8df5
commit
f8687eebcf
3
bom.py
3
bom.py
|
@ -5,9 +5,8 @@ from trytond.pool import PoolMeta
|
|||
__all__ = ['BOM', 'BOMDrawingLine']
|
||||
|
||||
|
||||
class BOM:
|
||||
class BOM(metaclass=PoolMeta):
|
||||
__name__ = 'production.bom'
|
||||
__metaclass__ = PoolMeta
|
||||
drawing = fields.Many2One('production.drawing', 'Drawing',
|
||||
ondelete='RESTRICT')
|
||||
drawing_lines = fields.One2Many('production.bom.drawing.line',
|
||||
|
|
|
@ -5,9 +5,8 @@ from trytond.pool import PoolMeta, Pool
|
|||
__all__ = ['Production', 'ProductionDrawingLine']
|
||||
|
||||
|
||||
class Production:
|
||||
class Production(metaclass=PoolMeta):
|
||||
__name__ = 'production'
|
||||
__metaclass__ = PoolMeta
|
||||
drawing = fields.Many2One('production.drawing', 'Drawing',
|
||||
ondelete='RESTRICT', states={
|
||||
'readonly': True,
|
||||
|
|
Loading…
Reference in New Issue