From 4a271e654ffbd4ff94f966ba77cc4e84907e0271 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Wed, 8 Mar 2023 11:34:19 +0100
Subject: [PATCH] [fix] error access rights union sociale template

---
 templates/report_union_sociale.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/report_union_sociale.xml b/templates/report_union_sociale.xml
index f474576..4a6b29f 100644
--- a/templates/report_union_sociale.xml
+++ b/templates/report_union_sociale.xml
@@ -193,7 +193,7 @@
         <template id="report_union_sociale">
             <t t-call="web.basic_layout">
                 <t t-set="docs" t-value="docs.with_context(lang='fr')" />
-                <t t-foreach="docs" t-as="o">
+                <t t-foreach="docs.sudo()" t-as="o">
                     <t
                         t-call="cgscop_cotisation_cg.report_union_sociale_document"
                         t-lang="fr"
-- 
GitLab