Files
tryton/party.py
T
Cédric Krier 5af726253b Add Python3 support
issue3211
review21791002
2016-03-06 22:51:42 +01:00

23 lines
795 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.
from trytond.pool import PoolMeta
from trytond.model import fields
__all__ = ['Party']
class Party:
__metaclass__ = PoolMeta
__name__ = 'party.party'
sepa_creditor_identifier = fields.Char('SEPA Creditor Identifier', size=35)
sepa_creditor_identifier_used = fields.Function(fields.Char(
'SEPA Creditor Identifier Used'),
'get_sepa_creditor_identifier_used')
sepa_mandates = fields.One2Many('account.payment.sepa.mandate', 'party',
'SEPA Mandates')
def get_sepa_creditor_identifier_used(self, name):
return self.sepa_creditor_identifier
# TODO validate identifier with python-stdnum