28 lines
697 B
Python
28 lines
697 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.osv import fields, OSV
|
|
|
|
|
|
class Export(OSV):
|
|
"Export"
|
|
_name = "ir.export"
|
|
_description = __doc__
|
|
name = fields.Char('Export name', size=128)
|
|
resource = fields.Char('Resource', size=128)
|
|
export_fields = fields.One2Many('ir.export.line', 'export',
|
|
'Export Id')
|
|
|
|
Export()
|
|
|
|
|
|
class ExportLine(OSV):
|
|
"Export line"
|
|
_name = 'ir.export.line'
|
|
_description = __doc__
|
|
name = fields.Char('Field name', size=64)
|
|
export = fields.Many2One('ir.export', 'Exportation',
|
|
select=1)
|
|
|
|
ExportLine()
|