bzr revid: pinky-656bd15810a4ed9db4c72565127cfc27dd18427e
This commit is contained in:
pinky 2007-01-16 13:58:55 +00:00
parent f4ae105500
commit 11c46231b8
2 changed files with 2 additions and 3 deletions

View File

@ -62,9 +62,9 @@ def _check(self, cr, uid, data, context):
if not data['form']['bank']:
raise wizard.except_wizard('UserError','No bank specified !')
if not re.compile('[0-9][0-9]?\-[0-9]+-[0-9]+').match(bank.bvr_number or ''):
raise wizard.except_wizard('UserError','Your bank BVR number should be of the form 0X-XXX-X !')
raise wizard.except_wizard('UserError','Your bank BVR number should be of the form 0X-XXX-X !\nPlease check your company information.')
if bank.bank_code and not re.compile('^[0-9]+$').match(bank.bank_code):
raise wizard.except_wizard('UserError','Your bank code must be a number !')
raise wizard.except_wizard('UserError','Your bank code must be a number !\nPlease check your company information.')
return {}
class wizard_report(wizard.interface):

View File

@ -26,7 +26,6 @@
<newline/>
<field name="bank_clearing" />
<field name="bvr_number"/>
</field>
</field>