Commit f006df3b authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[bred] fetch checking account iban only from fillobj

With PSD2 law, TPP (third party agregators) should only access checking
accounts web pages if bank APIs don't work.
So, only visit those pages explictly through fillobj, not always in
parent 02bffb5f
......@@ -135,9 +135,6 @@ class BredBrowser(LoginBrowser):
def get_list(self):
for acc in, current_univers=self.current_univers):
if acc.type == Account.TYPE_CHECKING:
yield acc
......@@ -227,3 +224,9 @@ class BredBrowser(LoginBrowser):
return profile
def fill_account(self, account, fields):
if account.type == Account.TYPE_CHECKING and 'iban' in fields:
......@@ -18,7 +18,7 @@
# along with this weboob module. If not, see <>.
from import CapBankWealth, AccountNotFound
from import CapBankWealth, AccountNotFound, Account
from weboob.capabilities.base import find_object
from weboob.capabilities.profile import CapProfile
from import Module, BackendConfig
......@@ -73,3 +73,13 @@ class BredModule(Module, CapBankWealth, CapProfile):
def get_profile(self):
return self.browser.get_profile()
def fill_account(self, account, fields):
if self.config['website'].get() != 'bred':
self.browser.fill_account(account, fields)
Account: fill_account,
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