Only catch the openerp exception in generate_party_agent(), as suggested by Stefan on the MP.

This commit is contained in:
Alexis de Lattre
2014-01-13 13:41:25 +01:00
parent 0f7bf84f7c
commit d686ca22ac

View File

@@ -295,7 +295,7 @@ class banking_export_pain(orm.AbstractModel):
party_agent_bic = etree.SubElement(
party_agent_institution, gen_args.get('bic_xml_tag'))
party_agent_bic.text = bic
except:
except except_orm:
if order == 'C':
if iban[0:2] != gen_args['initiating_party_country_code']:
raise orm.except_orm(