Commit 7b9a2e7c authored by Ludovic LANGE's avatar Ludovic LANGE Committed by Vincent A

[pajemploi] Fix download of payslip

parent e0dd263d
......@@ -126,4 +126,7 @@ class PajemploiBrowser(LoginBrowser):
and document._need_refresh_previous_page
):
document._previous_page.go(data=document._previous_data)
return self.open(document.url).content
data = {}
if hasattr(document, '_ref'):
data["ref"] = document._ref
return self.open(document.url, data=data).content
......@@ -41,7 +41,7 @@ from weboob.browser.filters.standard import (
Field,
Eval,
)
from weboob.browser.filters.html import Attr, Link, TableCell
from weboob.browser.filters.html import Attr, Link, TableCell, FormValue
from weboob.tools.date import parse_french_date
......@@ -280,6 +280,7 @@ class DeclarationDetailPage(PajemploiPage):
bs.type = DocumentTypes.OTHER
bs.label = "Bulletin de salaire %s %s" % (subscription.label, date.strftime("%d/%m/%Y"))
bs.url = Attr(".", "action")(frm[0])
bs._ref = FormValue('./input[@id="ref"]')(frm[0])
yield bs
# Relevé mensuel
......
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