From 5db1060629a03fb74665144dbf05f7cff4c4b21c Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 23 May 2013 15:11:42 +0200 Subject: [PATCH] [FIX] Required=True moved from the field declaration to the view. --- account_banking_sepa_credit_transfer/wizard/export_sepa.py | 3 ++- .../wizard/export_sepa_view.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/account_banking_sepa_credit_transfer/wizard/export_sepa.py b/account_banking_sepa_credit_transfer/wizard/export_sepa.py index 7a6cb3718..ee6fc32d8 100644 --- a/account_banking_sepa_credit_transfer/wizard/export_sepa.py +++ b/account_banking_sepa_credit_transfer/wizard/export_sepa.py @@ -40,7 +40,8 @@ class banking_export_sepa_wizard(osv.osv_memory): 'state': fields.selection([('create', 'Create'), ('finish', 'Finish')], 'State', readonly=True), 'msg_identification': fields.char('Message identification', size=35, - required=True, + # Can't set required=True on the field because it blocks + # the launch of the wizard -> I set it as required in the view help='This is the message identification of the entire SEPA XML file. 35 characters max.'), 'batch_booking': fields.boolean('Batch booking', help="If true, the bank statement will display only one debit line for all the wire transfers of the SEPA XML file ; if false, the bank statement will display one debit line per wire transfer of the SEPA XML file."), diff --git a/account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml b/account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml index 1255572c8..3893f7771 100644 --- a/account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml +++ b/account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml @@ -20,7 +20,7 @@ - +