From 81d1725a928cb91fc6a53cd4f3d623950283c6b8 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 4 Feb 2019 11:32:43 +0100 Subject: [PATCH] [caissedepargne] Included Capitalisation contracts in iter_investments Capitalisation contracts investments are accessed exactly like Life Insurance investments. --- modules/caissedepargne/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/caissedepargne/browser.py b/modules/caissedepargne/browser.py index 99dbacd61f..5dacfa9d25 100644 --- a/modules/caissedepargne/browser.py +++ b/modules/caissedepargne/browser.py @@ -597,7 +597,7 @@ def get_coming(self, account): @need_login def get_investment(self, account): self.deleteCTX() - if account.type not in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_MARKET, Account.TYPE_PEA) or 'measure_id' in account._info: + if account.type not in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_CAPITALISATION, Account.TYPE_MARKET, Account.TYPE_PEA) or 'measure_id' in account._info: raise NotImplementedError() if account.type == Account.TYPE_PEA and account.label == 'PEA NUMERAIRE': @@ -622,7 +622,7 @@ def get_investment(self, account): yield investment return - elif account.type == Account.TYPE_LIFE_INSURANCE: + elif account.type in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_CAPITALISATION): if "MILLEVIE" in account.label: self.page.go_life_insurance(account) label = account.label.split()[-1] -- GitLab