From f4fcbe6295fe6c2b53fa9d1bae3e9f0c96dc95ed Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Mon, 7 Feb 2022 11:05:01 +0100
Subject: [PATCH] [fix] error export

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

diff --git a/controllers/main.py b/controllers/main.py
index 217c1f7..d07868f 100644
--- a/controllers/main.py
+++ b/controllers/main.py
@@ -133,13 +133,10 @@ class ExportJournalCg(http.Controller):
                 )
             # Banque
             else:
-                if line.journal_id.code == 'CHQ' and line.credit > 0:
-                    pass
-                else:
-                    lines_to_export.append(self._export_row(
-                        line=line, amount=amount, direction=direction,
-                        account=line.account_id.code, journal='EF')
-                    )
+                lines_to_export.append(self._export_row(
+                    line=line, amount=amount, direction=direction,
+                    account=line.account_id.code, journal='EF')
+                )
 
             line.write({
                 'date_export': datetime.now()
-- 
GitLab