+ raise osv.except_osv(_('Error'),
+ _("The RIB key %s does not correspond to the other "
+ "codes: %s %s %s.") %
+ (bank_acc.key, bank_acc.bank_code,
+ bank_acc.office, bank_acc.rib_acc_number) )
+ if bank_acc.state == 'iban-rib':
+ if not self.check_iban(cr, uid, [bank_acc.id]):
+ raise osv.except_osv(_('Error'),
+ _("The IBAN %s is not valid.") % bank_acc.acc_number)