Commit 947518c6 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Romain Bignon

[cragr] skip "RENTE" since they have no data

Closes: 567987@redmine
parent c02d5202
......@@ -669,7 +669,14 @@ class SavingsPage(AccountsPage):
klass = Account
def condition(self):
return self.el.xpath('./td[contains(@class, "cel-texte")]')
if not self.el.xpath('./td[contains(@class, "cel-texte")]'):
return False
if Field('label')(self).startswith('RENTE'):
# RENTE account doesn't seem to have any balance or currency
return False
return True
obj_label = CleanText('./td[1]')
obj_id = CleanText('./td[2]')
    1. Why do not use NotAvailable for both balance and currency ?
    2. The patch does not work: another variant using colspan info as the condition: jerome/devel@8014952c

    Quick win is to use 'RENT' instead of 'RENTE' ;)

    Edited by Jerome b
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