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 5fec2892 authored by Martin Lavoie's avatar Martin Lavoie Committed by Vincent A

[amundi] Set owner_type to private for every account

parent 1d7d06c2
......@@ -30,7 +30,9 @@
from woob.browser.filters.html import Attr
from woob.browser.filters.json import Dict
from woob.browser.pages import LoggedPage, JsonPage, HTMLPage
from woob.capabilities.bank import Account, Transaction
from woob.capabilities.bank import (
Account, Transaction, AccountOwnerType,
)
from woob.capabilities.wealth import Investment, Pocket
from woob.capabilities.base import NotAvailable, empty
from woob.exceptions import NoAccountsException
......@@ -82,6 +84,7 @@ class item(ItemElement):
obj_balance = CleanDecimal(Dict('mtBrut'))
obj_currency = 'EUR'
obj_type = Map(Dict('typeDispositif'), ACCOUNT_TYPES, Account.TYPE_LIFE_INSURANCE)
obj_owner_type = AccountOwnerType.PRIVATE
def obj_number(self):
# just the id is a kind of company id so it can be unique on a backend but not unique on multiple backends
......
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