Commit 70ebaf77 authored by Julien Juke Hébert's avatar Julien Juke Hébert Committed by Romain Bignon
Browse files

[creditmutuel] remove unclear condition to get back the history

Closes: 3346@zendesk
parent 5b3b9a39
......@@ -707,12 +707,7 @@ class list_history(Transaction.TransactionsElement):
col_ville = u'Ville'
def condition(self):
if CleanText(u'//td[contains(., "Aucun mouvement")]', default=None)(self) \
or len(self.el.xpath('./td')) < 4 \
or CleanText(u'//td/p[contains(., "pas de Crédit")]'):
return False
else:
return True
return not CleanText(u'//td[contains(., "Aucun mouvement")]', default=False)(self)
def parse(self, el):
label = CleanText(u'//*[contains(text(), "Achats")]')(el)
......
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