- Define a sequence in the account configuration for the mandate identification. - Add a unique constraint per company on the mandate identification. issue3963 review5391002
16 lines
529 B
Python
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'),
|
|
]))
|