[FIX] Required=True moved from the field declaration to the view.

This commit is contained in:
Alexis de Lattre
2013-05-23 15:11:42 +02:00
parent bbe518a2cb
commit 5db1060629
2 changed files with 3 additions and 2 deletions

View File

@@ -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."),

View File

@@ -20,7 +20,7 @@
<field name="prefered_exec_date" />
<field name="charge_bearer" />
<separator colspan="4" string="Reference for further communication" />
<field name="msg_identification" />
<field name="msg_identification" required="True" />
<newline />
<button icon="gtk-close" special="cancel" string="Cancel" colspan="2"/>
<button icon="gtk-ok" string="Generate" name="create_sepa" type="object" colspan="2"/>