@Stefan

Yes, it is a direct consequence of the support of the missing BIC. I can't put 
an "if" clause, because the content of the if would be different depending on 
the origin of the function call :

- if we are in block B, we would have to test 
"sepa_export.payment_order_ids[0].mode.bank_id.bank.bic"

- if we are in block C, we would have to test "line.bank_id.bank.bic"

I think that, if we want to avoid this "try/except" in generate_party_agent(), 
I would need to fully re-organize the code about BIC following the introduction 
of the support of the missing BIC :
- check if we have a BIC or not in wizard/export_sepa.py just before each call 
to the function generate_party_block() and pass this information in the call of 
the function generate_party_block()
- then I could remove the try/except in the function generate_party_agent()

So, if you still want me to remove the try/except in generate_party_agent() and 
you agree with my proposal to re-organise the code, I will make the change 
described above.


-- 
https://code.launchpad.net/~akretion-team/banking-addons/70-sepa-trf-dd-updates/+merge/200019
Your team Banking Addons Core Editors is subscribed to branch lp:banking-addons.

-- 
Mailing list: https://launchpad.net/~banking-addons-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~banking-addons-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to