Files
tryton/party.py
T
2019-11-30 22:46:42 +01:00

24 lines
657 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', 'Replace']
class Party(metaclass=PoolMeta):
__name__ = 'party.party'
stripe_customers = fields.One2Many(
'account.payment.stripe.customer', 'party', "Stripe Customers")
class Replace(metaclass=PoolMeta):
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
return super().fields_to_replace() + [
('account.payment.stripe.customer', 'party'),
]