Files
tryton/account.py
T
Cédric Krier cafff27206 Add sequence and unique constraint for mandate identification
- Define a sequence in the account configuration for the mandate
  identification.
- Add a unique constraint per company on the mandate identification.

issue3963
review5391002
2014-06-22 17:13:47 +02:00

16 lines
529 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__ = ['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'),
]))