Commit c6d8b1ef authored by Cyril Brulebois's avatar Cyril Brulebois Committed by ntome

[bp] Allow TYPE_LIFE_INSURANCE to call get_history() for retirement_hist.

Solésio Vie is a type of life insurance plan and can show up through
RetirementHistory pages. Call get_history() in this case, in addition
to the TYPE_PREP case.
parent f0f3acea
......@@ -346,7 +346,7 @@ class BPBrowser(LoginBrowser, StatesMixin):
if hasattr(self.page, 'iter_transactions') and self.page.has_transactions():
return self.page.iter_transactions()
elif account.type == Account.TYPE_PERP and self.retirement_hist.is_here():
elif account.type in (Account.TYPE_PERP, Account.TYPE_LIFE_INSURANCE) and self.retirement_hist.is_here():
return self.page.get_history()
return []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment