trytond-edocument_edifact/party.py

30 lines
730 B
Python
Raw Normal View History

2018-05-02 13:50:39 +02:00
# The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
from trytond.model import fields
__all__ = ['PartyIdentifier', 'Address']
class PartyIdentifier:
__metaclass__ = PoolMeta
__name__ = 'party.identifier'
@classmethod
def get_types(cls):
return [
(None, ''),
('eu_vat', 'VAT'),
('EDI_sender', 'EDI Sender'),
('EDI_receiver', 'EDI Receiver'),
('EDI_supplier', 'EDI Supplier'),
('EDI_buyer', 'EDI Buyer'),
]
class Address:
__metaclass__ = PoolMeta
__name__ = 'party.address'
EDI_code = fields.Char('EDI Code')