The new woob repository is here: This gitlab will be removed soon.

Commit 40877f35 authored by Vincent A's avatar Vincent A

[caissedepargne] type some NOTICE documents

parent 5e04a697
......@@ -57,7 +57,9 @@ class CaisseEpargneModule(Module, CapBankWealth, CapBankTransferAddRecipient, Ca
accepted_document_types = (DocumentTypes.STATEMENT, DocumentTypes.OTHER,)
accepted_document_types = (
DocumentTypes.STATEMENT, DocumentTypes.OTHER, DocumentTypes.NOTICE,
def create_default_browser(self):
return self.create_browser(
......@@ -2525,10 +2525,14 @@ class item(ItemElement):
obj_label = Format('%s %s', CleanText('./td[3]'), CleanText('./td[2]'))
obj_date = Date(CleanText('./td[2]'), dayfirst=True)
def obj_type(self):
if 'Relevé' in CleanText('./td[3]')(self):
return DocumentTypes.STATEMENT
return DocumentTypes.OTHER
_type_text = CleanText('./td[3]')
"Relevé": DocumentTypes.STATEMENT,
"Info préalable à tarification": DocumentTypes.NOTICE,
"Information annuelle": DocumentTypes.NOTICE,
obj_type = MapIn(_type_text, TYPES_PATTERNS, default=DocumentTypes.OTHER)
def download_document(self, document):
form = self.get_form(id='main')
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