Limit lenght of mandate reference, according to ISO 20022

This commit is contained in:
Alexis de Lattre
2015-03-11 11:57:54 +01:00
parent bb2713aa71
commit 4929cba44b

View File

@@ -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')