Files
tryton/party.py
T

24 lines
572 B
Python
Raw Normal View History

2016-04-26 09:55:51 +02:00
# 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
2018-06-26 19:11:53 +02:00
class Party(metaclass=PoolMeta):
2016-04-26 09:55:51 +02:00
__name__ = 'party.party'
_history = True
2018-06-26 19:11:53 +02:00
class Address(metaclass=PoolMeta):
2016-04-26 09:55:51 +02:00
__name__ = 'party.address'
_history = True
2016-10-02 15:21:20 +02:00
2020-03-01 12:33:53 +01:00
class Replace(metaclass=PoolMeta):
2016-10-02 15:21:20 +02:00
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
2020-03-01 12:33:53 +01:00
return super().fields_to_replace() + [
2016-10-02 15:21:20 +02:00
('sale.opportunity', 'party'),
]