diff --git a/controllers/union_sociale.py b/controllers/union_sociale.py
index 99c9cdadfb7c46c82c8a7eb86d8e04f5d2718c79..9fade744775c01dd25e12e2e14588bd4c710b5b3 100644
--- a/controllers/union_sociale.py
+++ b/controllers/union_sociale.py
@@ -35,7 +35,7 @@ class UnionSocialeController(http.Controller):
             # Get report
             report = request.env.ref("cgscop_cotisation_cg.cgscop_union_sociale_report")
             # 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 = [
                 ("Content-Type", "application/pdf"),
                 ("Content-Length", len(pdf)),