/usr/lib/python2.7/dist-packages/trytond/modules/company/party.py is in tryton-modules-company 3.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #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']
__metaclass__ = PoolMeta
class PartyConfiguration:
__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]),
]
|