Files
tryton/trytond/ir/export.py
T
2009-03-23 14:56:36 +01:00

28 lines
726 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.
"Exports"
from trytond.model import ModelView, ModelSQL, fields
class Export(ModelSQL, ModelView):
"Export"
_name = "ir.export"
_description = __doc__
name = fields.Char('Name', size=128)
resource = fields.Char('Resource', size=128)
export_fields = fields.One2Many('ir.export.line', 'export',
'Fields')
Export()
class ExportLine(ModelSQL, ModelView):
"Export line"
_name = 'ir.export.line'
_description = __doc__
name = fields.Char('Name', size=64)
export = fields.Many2One('ir.export', 'Export',
select=1)
ExportLine()