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

[hsbc] use parent account currency for card accounts

parent 4fdc6869
......@@ -176,6 +176,8 @@ class HSBC(LoginBrowser):
card_page = self.open(a.url).page
parent_id = card_page.get_parent_id()
a.parent = find_object(self.accounts_list.values(), id=parent_id)
if a.parent and not a.currency:
a.currency = a.parent.currency
yield a
def go_post(self, url, data=None):
......
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