The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit e6107742 authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by Vincent A

[cmso] Added TYPE_PERP for "pep previ-retraite" accounts

Modified iter_investment function to handle PERP accounts

Listed in 11364@zendesk
parent 476f9347
......@@ -300,7 +300,7 @@ def iter_coming(self, account):
def iter_investment(self, account):
account = self.get_account(account.id)
if account.type == Account.TYPE_LIFE_INSURANCE:
if account.type in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_PERP):
url = json.loads(self.lifeinsurance.go(accid=account._index).content)['url']
url = self.location(url).page.get_link("supports")
if not url:
......
......@@ -76,6 +76,7 @@ class AccountsPage(LoggedPage, JsonPage):
('capital plus', Account.TYPE_SAVINGS),
('capital expansion', Account.TYPE_DEPOSIT),
('carte', Account.TYPE_CARD),
('previ-retraite', Account.TYPE_PERP),
])
def get_keys(self):
......
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