Files
tryton/account.py
T
2014-12-03 16:16:17 +01:00

19 lines
669 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
from trytond.pyson import Eval
__all__ = ['Configuration']
__metaclass__ = PoolMeta
class Configuration:
__name__ = 'account.configuration'
sepa_mandate_sequence = fields.Property(fields.Many2One('ir.sequence',
'SEPA Mandate Sequence', domain=[
('code', '=', 'account.payment.sepa.mandate'),
('company', 'in', [Eval('context', {}).get('company', -1),
None]),
]))