From 92af0ea827264c657b223f41c3cdbd81c0767412 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 13 Nov 2018 11:52:06 +0100 Subject: [PATCH] [hsbc] Rename investment labels and codes in iter_liquidity() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Customers complained about weird invest labels that they could not identify in some of the invests. These invests are actually part of iter_liquidity, therefore, in order to fit the liquidity model, I renamed these investments with "Liquidités" and "XX-liquidity". I on purpose did not use create_french_liquidity because here liquidities are iterated with klass=Investment in pages.py and they have specific attributes such as original_currency and invest_account_id. Closes: 7977@zendesk --- modules/hsbc/pages/investments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/hsbc/pages/investments.py b/modules/hsbc/pages/investments.py index 67a0e81a7a..15f65bebf6 100644 --- a/modules/hsbc/pages/investments.py +++ b/modules/hsbc/pages/investments.py @@ -467,7 +467,9 @@ class item(ItemElement): def condition(self): return Dict('productTypeCode')(self) == 'INVCASH' - obj_label = CleanText(Dict('productShortName')) + obj_label = "Liquidités" + obj_code = "XX-liquidity" + obj_code_type = NotAvailable obj_valuation = CleanDecimal( Dict( 'holdingDetailInformation/0/holdingDetailMultipleCurrencyInformation/1' -- GitLab