From e2c793bc5c1bf283b696287a64c90cd9043d8ad9 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 5 May 2023 13:21:07 +0200 Subject: [PATCH] [IMP] after migration improvements --- .../tests/test_datev_import_csv_dtvf.py | 1 - datev_import_csv_dtvf/wizard/import_move.py | 14 -------------- .../wizard/import_move_view.xml | 16 +++++++--------- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py b/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py index 7de66360..eabe708f 100644 --- a/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py +++ b/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py @@ -90,7 +90,6 @@ def test_wizard(self): .read() .encode("utf8") ), - "file_format": "genericcsv", "force_journal_id": self.env["account.journal"] .search([("type", "=", "sale")], limit=1) .id, diff --git a/datev_import_csv_dtvf/wizard/import_move.py b/datev_import_csv_dtvf/wizard/import_move.py index 24ae4222..6abab78e 100644 --- a/datev_import_csv_dtvf/wizard/import_move.py +++ b/datev_import_csv_dtvf/wizard/import_move.py @@ -28,20 +28,6 @@ class AccountMoveImport(models.TransientModel): help="File containing the journal entry(ies) to import.", ) filename = fields.Char() - file_format = fields.Selection( - [("genericcsv", "Generic CSV")], - string="File Format", - required=True, - help="Select the type of file you are importing.", - ) - file_encoding = fields.Selection( - [ - ("utf-8", "UTF-8"), - ("windows-1252", "Western (Windows-1252)"), - ], - string="File Encoding", - default="utf-8", - ) post_move = fields.Boolean( string="Post Journal Entry", help="If True, the journal entry will be posted after the import.", diff --git a/datev_import_csv_dtvf/wizard/import_move_view.xml b/datev_import_csv_dtvf/wizard/import_move_view.xml index aa177cca..849d960c 100644 --- a/datev_import_csv_dtvf/wizard/import_move_view.xml +++ b/datev_import_csv_dtvf/wizard/import_move_view.xml @@ -9,8 +9,6 @@ - - @@ -18,11 +16,11 @@ -
-

Information about the Generic CSV format

+
+ Note this import does not handle taxes! +
+
+

Information about the DATEV CSV format

  • First Row : contains information like year @@ -85,7 +83,7 @@ - Import Account Move + Import DATEV Format (.csv) account.move.import form new @@ -93,7 +91,7 @@