From 0b039541dbebe00a96ecc53fb620a5b8d2f7fe5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Fri, 10 Jun 2022 13:12:52 +0200
Subject: [PATCH] [FIX] export_gap error

---
 models/project.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/models/project.py b/models/project.py
index d35f52a..37449e8 100644
--- a/models/project.py
+++ b/models/project.py
@@ -701,7 +701,7 @@ class Project(models.Model):
             project_id = project.id
             return {
                 "type": "ir.actions.act_url",
-                "url": "/web/export_gap?filename_=%s&project_id=%s&type=%s"
+                "url": "/web/export_gap?filename_=%s&project_id=%s&partner_type=%s"
                 % (filename_, project_id, "gap"),
                 "target": "new",
             }
@@ -713,7 +713,7 @@ class Project(models.Model):
             project_id = project.id
             return {
                 "type": "ir.actions.act_url",
-                "url": "/web/export_gap?filename_=%s&project_id=%s&type=%s"
+                "url": "/web/export_gap?filename_=%s&project_id=%s&partner_type=%s"
                 % (filename_, project_id, "benef"),
                 "target": "new",
             }
-- 
GitLab