Skip to content
Extraits de code Groupes Projets
Valider 0b718561 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[fix] change function render_qweb_pdf to _render_qweb_pdf

parent 39ebf3f8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -35,7 +35,7 @@ class UnionSocialeController(http.Controller): ...@@ -35,7 +35,7 @@ class UnionSocialeController(http.Controller):
# Get report # Get report
report = request.env.ref("cgscop_cotisation_cg.cgscop_union_sociale_report") report = request.env.ref("cgscop_cotisation_cg.cgscop_union_sociale_report")
# Create PDF # Create PDF
pdf = report.sudo().with_context(ctx).render_qweb_pdf([partner_id.id])[0] pdf = report.sudo().with_context(ctx)._render_qweb_pdf([partner_id.id])[0]
pdfhttpheaders = [ pdfhttpheaders = [
("Content-Type", "application/pdf"), ("Content-Type", "application/pdf"),
("Content-Length", len(pdf)), ("Content-Length", len(pdf)),
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter