From ddcef705a1d91e1125da8dfc8fb2875267e7afce Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Mon, 17 Oct 2022 11:16:18 +0200
Subject: [PATCH] [update] export contribution

---
 controllers/main.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/controllers/main.py b/controllers/main.py
index bda8ff1..a6a1515 100644
--- a/controllers/main.py
+++ b/controllers/main.py
@@ -62,10 +62,8 @@ class ExportJournalCg(http.Controller):
 
         # Selection des dates + pas d'export du journal UR / FEDE
         domain = [
-            ("partner_id", "!=", False),
             ("company_id", "=", company_id.id),
             ("parent_state", "=", "posted"),
-            ("date_maturity", "!=", False),
         ]
         if date_start and date_end:
             domain += [
@@ -74,8 +72,8 @@ class ExportJournalCg(http.Controller):
             ]
         if date_creation_start and date_creation_end:
             domain += [
-                ("create_date", ">=", date_creation_start),
-                ("create_date", "<=", date_creation_end),
+                ("create_date", ">=", date_creation_start + " 00:00:00"),
+                ("create_date", "<=", date_creation_end + " 23:59:59"),
             ]
         if export_type == "empty":
             domain += [("date_export", "=", False)]
-- 
GitLab