mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Limit lenght of mandate reference, according to ISO 20022
This commit is contained in:
@@ -70,12 +70,14 @@ class AccountBankingMandate(models.Model):
|
||||
"active.", default=True)
|
||||
original_mandate_identification = fields.Char(
|
||||
string='Original Mandate Identification', track_visibility='onchange',
|
||||
size=35,
|
||||
help="When the field 'Migrated to SEPA' is not active, this field "
|
||||
"will be used as the Original Mandate Identification in the "
|
||||
"Direct Debit file.")
|
||||
scheme = fields.Selection([('CORE', 'Basic (CORE)'),
|
||||
('B2B', 'Enterprise (B2B)')],
|
||||
string='Scheme', required=True, default="CORE")
|
||||
unique_mandate_reference = fields.Char(size=35) # cf ISO 20022
|
||||
|
||||
@api.one
|
||||
@api.constrains('type', 'recurrent_sequence_type')
|
||||
|
||||
Reference in New Issue
Block a user