Files
tryton/party.py
T
2016-02-20 10:50:02 +01:00

21 lines
597 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.pyson import Eval
from trytond.pool import PoolMeta
__all__ = ['PartyConfiguration']
class PartyConfiguration:
__metaclass__ = PoolMeta
__name__ = 'party.configuration'
@classmethod
def __setup__(cls):
super(PartyConfiguration, cls).__setup__()
cls.party_sequence.domain = [
cls.party_sequence.domain,
('company', 'in', [Eval('context', {}).get('company'), None]),
]