From 14fd7f6a2fd5b4bf2b8dc658356247f25eb095e3 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Wed, 9 Mar 2022 17:02:08 +0100
Subject: [PATCH] [fix] error export sections and notes

---
 controllers/main.py           | 1 +
 views/export_journal_type.xml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/controllers/main.py b/controllers/main.py
index 62e3d64..ad33b7d 100644
--- a/controllers/main.py
+++ b/controllers/main.py
@@ -40,6 +40,7 @@ class JournalDatasExport(http.Controller):
             ("journal_id", "in", export_id.journal_ids.ids),
             ("company_id", "=", export_id.company_id.id),
             ("move_id.state", "=", "posted"),
+            ("display_type", "=", False),
         ]
         if export_type == "empty":
             domain += [("date_export", "=", False)]
diff --git a/views/export_journal_type.xml b/views/export_journal_type.xml
index e4ccfae..cf8b718 100644
--- a/views/export_journal_type.xml
+++ b/views/export_journal_type.xml
@@ -51,7 +51,7 @@
                                 <field name="sequence" widget="handle" />
                                 <field name="name" required="1" />
                                 <field name="field_name" required="1" />
-                                <field name="is_python" widget="boolean_toggle"/>
+                                <field name="is_python" widget="boolean_toggle" />
                             </tree>
                         </field>
                     </sheet>
-- 
GitLab