Commit cdc8c4e5 authored by Vincent A's avatar Vincent A

[bolden] retype lend documents and add fiscal docs

parent 5d56fa79
Pipeline #2220 canceled with stages
......@@ -97,6 +97,10 @@ class BoldenBrowser(LoginBrowser): =
doc.url = inv._docurl
doc.label = 'Contrat %s' % inv.label
doc.type = DocumentTypes.OTHER
doc.type = DocumentTypes.CONTRACT
doc.format = 'pdf'
yield doc
for doc in
yield doc
......@@ -19,7 +19,6 @@
from __future__ import unicode_literals
from import Module, BackendConfig
from import ValueBackendPassword
from import CapBankWealth, Account
......@@ -20,14 +20,15 @@
from __future__ import unicode_literals
from weboob.browser.elements import ListElement, ItemElement, method, TableElement
from weboob.browser.filters.html import TableCell, Link, Attr
from weboob.browser.filters.html import TableCell, Link, Attr, AbsoluteLink
from weboob.browser.filters.standard import (
CleanText, CleanDecimal, Slugify, Date, Field, Format,
CleanText, CleanDecimal, Slugify, Date, Field, Format, Regexp,
from weboob.browser.pages import HTMLPage, LoggedPage
from weboob.capabilities.base import NotAvailable
from import Account, Transaction, Investment
from weboob.capabilities.profile import Profile
from weboob.capabilities.bill import Document, DocumentTypes
from weboob.exceptions import BrowserIncorrectPassword
from import urljoin
......@@ -143,3 +144,17 @@ class ProfilePage(LoggedPage, HTMLPage):
Attr('//input[@id="SubModel_Address_City"]', 'value'),
class iter_documents(ListElement):
item_xpath = '//a[starts-with(@href, "/Upload/Show")]'
class item(ItemElement):
klass = Document
obj_label = 'Imprimé fiscal unique'
obj_type = DocumentTypes.REPORT
obj_format = 'pdf'
obj_url = AbsoluteLink('.')
obj_id = Regexp(Field('url'), r'fileId=(\d+)')
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