From 0b71856145553c5cb503d2eb9c4ee8affee223bc Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Thu, 23 Jun 2022 15:28:45 +0200
Subject: [PATCH] [fix] change function render_qweb_pdf to _render_qweb_pdf

---
 controllers/union_sociale.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/union_sociale.py b/controllers/union_sociale.py
index 99c9cda..9fade74 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)),
-- 
GitLab