From a5b3734b86fd02425248ac5c7e665463da769e96 Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Thu, 9 Sep 2021 21:41:20 +0200 Subject: [PATCH 01/45] [MIG] account_bank_statement_import_txt_xlsx: Migration to 14.0 [FIX] Mostly currency-related fixes [IMP] sample_statement_en test: add dates on description Co-authored-by: Marco Colombo [UPD] Update account_statement_import_txt_xlsx.pot --- .../README.rst | 124 ++++ .../__init__.py | 2 + .../__manifest__.py | 29 + .../data/map_data.xml | 23 + ...account_bank_statement_import_txt_xlsx.pot | 515 +++++++++++++++++ .../account_statement_import_txt_xlsx.pot | 520 +++++++++++++++++ .../i18n/nl.po | 528 ++++++++++++++++++ .../i18n/zh_CN.po | 527 +++++++++++++++++ .../models/__init__.py | 6 + .../models/account_journal.py | 18 + .../models/account_statement_import.py | 36 ++ .../account_statement_import_sheet_mapping.py | 166 ++++++ .../account_statement_import_sheet_parser.py | 384 +++++++++++++ .../readme/CONFIGURE.rst | 4 + .../readme/CONTRIBUTORS.rst | 15 + .../readme/DESCRIPTION.rst | 2 + .../readme/HISTORY.rst | 7 + .../readme/USAGE.rst | 4 + .../security/ir.model.access.csv | 5 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 472 ++++++++++++++++ .../tests/__init__.py | 3 + .../tests/fixtures/balance.csv | 3 + .../tests/fixtures/debit_credit.csv | 3 + .../tests/fixtures/empty_statement_en.csv | 1 + .../tests/fixtures/empty_statement_en.xlsx | Bin 0 -> 9041 bytes .../tests/fixtures/multi_currency.csv | 3 + .../tests/fixtures/original_currency.csv | 2 + .../fixtures/original_currency_empty.csv | 2 + .../tests/fixtures/sample_statement_en.csv | 3 + .../tests/fixtures/sample_statement_en.xlsx | Bin 0 -> 5101 bytes .../test_account_statement_import_txt_xlsx.py | 345 ++++++++++++ .../views/account_journal_views.xml | 17 + .../views/account_statement_import.xml | 23 + ...account_statement_import_sheet_mapping.xml | 89 +++ .../wizards/__init__.py | 3 + ...t_statement_import_sheet_mapping_wizard.py | 198 +++++++ ..._statement_import_sheet_mapping_wizard.xml | 162 ++++++ 38 files changed, 4244 insertions(+) create mode 100644 account_statement_import_sheet_file/README.rst create mode 100644 account_statement_import_sheet_file/__init__.py create mode 100644 account_statement_import_sheet_file/__manifest__.py create mode 100644 account_statement_import_sheet_file/data/map_data.xml create mode 100644 account_statement_import_sheet_file/i18n/account_bank_statement_import_txt_xlsx.pot create mode 100644 account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot create mode 100644 account_statement_import_sheet_file/i18n/nl.po create mode 100644 account_statement_import_sheet_file/i18n/zh_CN.po create mode 100644 account_statement_import_sheet_file/models/__init__.py create mode 100644 account_statement_import_sheet_file/models/account_journal.py create mode 100644 account_statement_import_sheet_file/models/account_statement_import.py create mode 100644 account_statement_import_sheet_file/models/account_statement_import_sheet_mapping.py create mode 100644 account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py create mode 100644 account_statement_import_sheet_file/readme/CONFIGURE.rst create mode 100644 account_statement_import_sheet_file/readme/CONTRIBUTORS.rst create mode 100644 account_statement_import_sheet_file/readme/DESCRIPTION.rst create mode 100644 account_statement_import_sheet_file/readme/HISTORY.rst create mode 100644 account_statement_import_sheet_file/readme/USAGE.rst create mode 100644 account_statement_import_sheet_file/security/ir.model.access.csv create mode 100644 account_statement_import_sheet_file/static/description/icon.png create mode 100644 account_statement_import_sheet_file/static/description/index.html create mode 100644 account_statement_import_sheet_file/tests/__init__.py create mode 100644 account_statement_import_sheet_file/tests/fixtures/balance.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/debit_credit.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/empty_statement_en.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/empty_statement_en.xlsx create mode 100644 account_statement_import_sheet_file/tests/fixtures/multi_currency.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/original_currency.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/original_currency_empty.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/sample_statement_en.csv create mode 100644 account_statement_import_sheet_file/tests/fixtures/sample_statement_en.xlsx create mode 100644 account_statement_import_sheet_file/tests/test_account_statement_import_txt_xlsx.py create mode 100644 account_statement_import_sheet_file/views/account_journal_views.xml create mode 100644 account_statement_import_sheet_file/views/account_statement_import.xml create mode 100644 account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml create mode 100644 account_statement_import_sheet_file/wizards/__init__.py create mode 100644 account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.py create mode 100644 account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.xml diff --git a/account_statement_import_sheet_file/README.rst b/account_statement_import_sheet_file/README.rst new file mode 100644 index 000000000..15e7b9ff5 --- /dev/null +++ b/account_statement_import_sheet_file/README.rst @@ -0,0 +1,124 @@ +================================== +Bank Statement TXT/CSV/XLSX Import +================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github + :target: https://github.com/OCA/bank-statement-import/tree/14.0/account_statement_import_txt_xlsx + :alt: OCA/bank-statement-import +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/174/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to import any TXT/CSV or XLSX file in Odoo as bank +statements. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To create TXT/CSV/XLSX statement sheet columns mapping: + +#. Open *Invoicing > Configuration > Accounting > Statement Sheet Mappings* +#. Create mapping(s) according to your online banking software statement format + +Usage +===== + +To use this module, you need to: + +#. Get statement in TXT/CSV or XLSX from your online banking software +#. Go to Odoo and and import the statement file, selecting corresponding format + +Changelog +========= + +12.0.2.0.0 +~~~~~~~~~~ + +* [BREAKING] New mapping, please review mappings after upgrade. +* [BREAKING] Different bank accounts have to be used per each currency. +* [ADD] Support for both Statement and Activity reports. +* [ADD] Separate fee and currency exchange parsing. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ForgeFlow +* CorporateHub + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Sebastien BEAU +* Tecnativa (https://www.tecnativa.com) + + * Vicent Cubells + * Victor M.M. Torres + +* ForgeFlow (https://www.forgeflow.com) + + * Jordi Ballester Alomar + * Miquel Raïch Regué + +* `CorporateHub `__ + + * Alexey Pelykh + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-alexey-pelykh| image:: https://github.com/alexey-pelykh.png?size=40px + :target: https://github.com/alexey-pelykh + :alt: alexey-pelykh + +Current `maintainer `__: + +|maintainer-alexey-pelykh| + +This module is part of the `OCA/bank-statement-import `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_statement_import_sheet_file/__init__.py b/account_statement_import_sheet_file/__init__.py new file mode 100644 index 000000000..aee8895e7 --- /dev/null +++ b/account_statement_import_sheet_file/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import wizards diff --git a/account_statement_import_sheet_file/__manifest__.py b/account_statement_import_sheet_file/__manifest__.py new file mode 100644 index 000000000..dbf2bd88f --- /dev/null +++ b/account_statement_import_sheet_file/__manifest__.py @@ -0,0 +1,29 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Bank Statement TXT/CSV/XLSX Import", + "summary": "Import TXT/CSV or XLSX files as Bank Statements in Odoo", + "version": "14.0.1.0.0", + "category": "Accounting", + "website": "https://github.com/OCA/bank-statement-import", + "author": "ForgeFlow, CorporateHub, Odoo Community Association (OCA)", + "maintainers": ["alexey-pelykh"], + "license": "AGPL-3", + "installable": True, + "depends": [ + "account_statement_import", + "multi_step_wizard", + "web_widget_dropdown_dynamic", + ], + "external_dependencies": {"python": ["xlrd"]}, + "data": [ + "security/ir.model.access.csv", + "data/map_data.xml", + "views/account_statement_import_sheet_mapping.xml", + "views/account_statement_import.xml", + "views/account_journal_views.xml", + "wizards/account_statement_import_sheet_mapping_wizard.xml", + ], +} diff --git a/account_statement_import_sheet_file/data/map_data.xml b/account_statement_import_sheet_file/data/map_data.xml new file mode 100644 index 000000000..f87466015 --- /dev/null +++ b/account_statement_import_sheet_file/data/map_data.xml @@ -0,0 +1,23 @@ + + + + + Sample Statement + comma + dot + comma + " + %m/%d/%Y + Date + Amount + Currency + Amount Currency + Label + Partner Name + Bank Account + + diff --git a/account_statement_import_sheet_file/i18n/account_bank_statement_import_txt_xlsx.pot b/account_statement_import_sheet_file/i18n/account_bank_statement_import_txt_xlsx.pot new file mode 100644 index 000000000..429d0a300 --- /dev/null +++ b/account_statement_import_sheet_file/i18n/account_bank_statement_import_txt_xlsx.pot @@ -0,0 +1,515 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_txt_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_bank_statement_import_sheet_mapping +msgid "Account Bank Statement Import Sheet Mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_bank_statement_import_sheet_mapping_wizard +msgid "Account Bank Statement Import Sheet Mapping Wizard" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_bank_statement_import_sheet_parser +msgid "Account Bank Statement Import Sheet Parser" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py:0 +#, python-format +msgid "Account: %s; " +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__allow_back +msgid "Allow Back" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount of transaction in journal's currency" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance after transaction in journal's currency" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__iso-8859-4 +msgid "Baltic (Latin-4 / ISO 8859-4)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Bank Account column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Bank Name column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py:0 +#, python-format +msgid "Bank: %s; " +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__iso-8859-2 +msgid "Central European (Latin-2 / ISO 8859-2)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_tree +msgid "Columns" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__create_uid +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__create_uid +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__create_uid +msgid "Created by" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__create_date +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__create_date +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__create_date +msgid "Created on" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__credit_value +msgid "Credit value" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__currency_column +msgid "Currency column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__koi8_r +msgid "Cyrillic (KOI8-R)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__koi8_u +msgid "Cyrillic (KOI8-U)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__windows-1251 +msgid "Cyrillic (Windows-1251)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__debit_value +msgid "Debit value" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_wizard_form +msgid "Debit/Credit column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "Debit/credit column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__float_decimal_sep +msgid "Decimals Separator" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_journal_creation__default_sheet_mapping_id +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_journal__default_sheet_mapping_id +msgid "Default Sheet Mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__delimiter +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__delimiter +msgid "Delimiter" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__description_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__description_column +msgid "Description column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__display_name +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__display_name +msgid "Display Name" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__file_encoding +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__file_encoding +msgid "Encoding" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__attachment_ids +msgid "Files" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__header +msgid "Header" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__id +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__id +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__id +msgid "ID" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_wizard_form +msgid "Import" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_bank_statement_import +msgid "Import Bank Statement" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_bank_statement_import_txt_xlsx.action_account_bank_statement_import_sheet_mapping_wizard +msgid "Import Mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Imported Mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__currency_column +msgid "" +"In case statement is multi-currency, column to get currency of transaction " +"from" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__original_currency_column +msgid "" +"In case statement provides original currency for transactions with automatic" +" currency conversion, column to get original currency of transaction from" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__original_amount_column +msgid "" +"In case statement provides original currency for transactions with automatic" +" currency conversion, column to get original transaction amount in original " +"transaction currency from" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__shift_jis +msgid "Japanese (Shift JIS)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping____last_update +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard____last_update +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__write_uid +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__write_uid +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__write_date +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__write_date +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_parser__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Mapping from %s" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py:0 +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__n/a +#, python-format +msgid "N/A" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__name +msgid "Name" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__notes_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__notes_column +msgid "Notes column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_wizard_form +msgid "Options" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__original_amount_column +msgid "Original amount column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__original_currency_column +msgid "Original currency column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__partner_name_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__partner_name_column +msgid "Partner Name column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Partner's bank" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Partner's bank account" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__reference_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__reference_column +msgid "Reference column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_wizard_form +msgid "Select a statement file to import mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import__sheet_mapping_id +msgid "Sheet mapping" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "" +"Some statement formats use absolute amount value and indicate signof the " +"transaction by specifying if it was a debit or a credit one" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__state +msgid "State" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.view_account_journal_form_n43 +msgid "Statement Import Map" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_bank_statement_import_txt_xlsx.action_statement_import_sheet_report_mappings +#: model:ir.ui.menu,name:account_bank_statement_import_txt_xlsx.menu_statement_import_sheet_mapping +msgid "Statement Sheet Mappings" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_view +msgid "TXT/CSV/XLSX mapping:" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__quotechar +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__quotechar +msgid "Text qualifier" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__float_thousands_sep +msgid "Thousands Separator" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__timestamp_format +msgid "Timestamp Format" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__timestamp_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__timestamp_column +msgid "Timestamp column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__big5 +msgid "Traditional Chinese (big5)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: code:addons/account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py:0 +#, python-format +msgid "Transaction ID: %s; " +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__utf-16 +msgid "UTF-16" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__utf-16-sig +msgid "UTF-16 (with BOM)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__utf-8 +msgid "UTF-8" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__utf-8-sig +msgid "UTF-8 (with BOM)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__gb18030 +msgid "Unified Chinese (gb18030)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__transaction_id_column +#: model:ir.model.fields,field_description:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__transaction_id_column +msgid "Unique transaction ID column" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_bank_statement_import_txt_xlsx.account_bank_statement_import_sheet_mapping_wizard_form +msgid "Upload Files" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__credit_value +msgid "Value of debit/credit column that indicates if it's a credit" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,help:account_bank_statement_import_txt_xlsx.field_account_bank_statement_import_sheet_mapping_wizard__debit_value +msgid "Value of debit/credit column that indicates if it's a debit" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__iso-8859-1 +msgid "Western (Latin-1 / ISO 8859-1)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__file_encoding__windows-1252 +msgid "Western (Windows-1252)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__comma +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_decimal_sep__comma +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_thousands_sep__comma +msgid "comma (,)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__dot +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_decimal_sep__dot +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_thousands_sep__dot +msgid "dot (.)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_decimal_sep__none +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__float_thousands_sep__none +msgid "none" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__semicolon +msgid "semicolon (;)" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__space +msgid "space" +msgstr "" + +#. module: account_bank_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_bank_statement_import_txt_xlsx.selection__account_bank_statement_import_sheet_mapping__delimiter__tab +msgid "tab" +msgstr "" diff --git a/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot b/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot new file mode 100644 index 000000000..bbcd49754 --- /dev/null +++ b/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot @@ -0,0 +1,520 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_import_txt_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Account: %s; " +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__allow_back +msgid "Allow Back" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount of transaction in journal's currency" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance after transaction in journal's currency" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-4 +msgid "Baltic (Latin-4 / ISO 8859-4)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Bank Account column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Bank Name column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping +msgid "Bank Statement Import Sheet Mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping_wizard +msgid "Bank Statement Import Sheet Mapping Wizard" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_parser +msgid "Bank Statement Import Sheet Parser" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Bank: %s; " +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-2 +msgid "Central European (Latin-2 / ISO 8859-2)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_tree +msgid "Columns" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_uid +msgid "Created by" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_date +msgid "Created on" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Credit value" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "Currency column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_r +msgid "Cyrillic (KOI8-R)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_u +msgid "Cyrillic (KOI8-U)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1251 +msgid "Cyrillic (Windows-1251)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Debit value" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Debit/Credit column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "Debit/credit column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_decimal_sep +msgid "Decimals Separator" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__default_sheet_mapping_id +msgid "Default Sheet Mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__delimiter +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__delimiter +msgid "Delimiter" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__description_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__description_column +msgid "Description column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__display_name +msgid "Display Name" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__file_encoding +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__file_encoding +msgid "Encoding" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__attachment_ids +msgid "Files" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__header +msgid "Header" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__id +msgid "ID" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Import" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import +msgid "Import Bank Statement Files" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_account_statement_import_sheet_mapping_wizard +msgid "Import Mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Imported Mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "" +"In case statement is multi-currency, column to get currency of transaction " +"from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "" +"In case statement provides original currency for transactions with automatic" +" currency conversion, column to get original currency of transaction from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "" +"In case statement provides original currency for transactions with automatic" +" currency conversion, column to get original transaction amount in original " +"transaction currency from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__shift_jis +msgid "Japanese (Shift JIS)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_journal +msgid "Journal" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Mapping from %s" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__n/a +#, python-format +msgid "N/A" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__name +msgid "Name" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__notes_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__notes_column +msgid "Notes column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Options" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "Original amount column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "Original currency column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__partner_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__partner_name_column +msgid "Partner Name column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Partner's bank" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Partner's bank account" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__reference_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__reference_column +msgid "Reference column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Select a statement file to import mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__sheet_mapping_id +msgid "Sheet mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "" +"Some statement formats use absolute amount value and indicate signof the " +"transaction by specifying if it was a debit or a credit one" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__state +msgid "State" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.view_account_journal_form_n43 +msgid "Statement Import Map" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_statement_import_sheet_report_mappings +#: model:ir.ui.menu,name:account_statement_import_txt_xlsx.menu_statement_import_sheet_mapping +msgid "Statement Sheet Mappings" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_form +msgid "TXT/CSV/XLSX mapping:" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__quotechar +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__quotechar +msgid "Text qualifier" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_thousands_sep +msgid "Thousands Separator" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_format +msgid "Timestamp Format" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__timestamp_column +msgid "Timestamp column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__big5 +msgid "Traditional Chinese (big5)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Transaction ID: %s; " +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16 +msgid "UTF-16" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16-sig +msgid "UTF-16 (with BOM)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8 +msgid "UTF-8" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8-sig +msgid "UTF-8 (with BOM)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__gb18030 +msgid "Unified Chinese (gb18030)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__transaction_id_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__transaction_id_column +msgid "Unique transaction ID column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Upload Files" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Value of debit/credit column that indicates if it's a credit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Value of debit/credit column that indicates if it's a debit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-1 +msgid "Western (Latin-1 / ISO 8859-1)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1252 +msgid "Western (Windows-1252)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__comma +msgid "comma (,)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__dot +msgid "dot (.)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__none +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__none +msgid "none" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__semicolon +msgid "semicolon (;)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__space +msgid "space" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__tab +msgid "tab" +msgstr "" diff --git a/account_statement_import_sheet_file/i18n/nl.po b/account_statement_import_sheet_file/i18n/nl.po new file mode 100644 index 000000000..32cead979 --- /dev/null +++ b/account_statement_import_sheet_file/i18n/nl.po @@ -0,0 +1,528 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_txt_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-01-22 23:45+0000\n" +"Last-Translator: Bosd \n" +"Language-Team: none\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Account: %s; " +msgstr "Rekening: %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__allow_back +msgid "Allow Back" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount column" +msgstr "Bedrag kolom" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount of transaction in journal's currency" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance after transaction in journal's currency" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-4 +msgid "Baltic (Latin-4 / ISO 8859-4)" +msgstr "Baltic (Latin-4 / ISO 8859-4)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Bank Account column" +msgstr "Bankrekening Kolom" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Bank Name column" +msgstr "Bank naam kolom" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping +#, fuzzy +msgid "Bank Statement Import Sheet Mapping" +msgstr "Bankafschrift import mapping" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping_wizard +#, fuzzy +msgid "Bank Statement Import Sheet Mapping Wizard" +msgstr "Bankafschrift mapping guids" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_parser +#, fuzzy +msgid "Bank Statement Import Sheet Parser" +msgstr "Bankafschrift parser" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Bank: %s; " +msgstr "Bank: %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-2 +msgid "Central European (Latin-2 / ISO 8859-2)" +msgstr "Central European (Latin-2 / ISO 8859-2)" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_tree +msgid "Columns" +msgstr "Kolommen" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_uid +msgid "Created by" +msgstr "Aangemaakt door" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_date +msgid "Created on" +msgstr "Aangemaakt op" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Credit value" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "Currency column" +msgstr "Valuta Kolom" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_r +msgid "Cyrillic (KOI8-R)" +msgstr "Cyrillic (KOI8-R)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_u +msgid "Cyrillic (KOI8-U)" +msgstr "Cyrillic (KOI8-U)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1251 +msgid "Cyrillic (Windows-1251)" +msgstr "Cyrillic (Windows-1251)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Debit value" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Debit/Credit column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "Debit/credit column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_decimal_sep +msgid "Decimals Separator" +msgstr "Decimaal scheidingsteken" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__default_sheet_mapping_id +msgid "Default Sheet Mapping" +msgstr "Standaard afschrift mapping" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__delimiter +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__delimiter +msgid "Delimiter" +msgstr "Scheidingsteken" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__description_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__description_column +msgid "Description column" +msgstr "Kolom omschrijving" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__display_name +msgid "Display Name" +msgstr "Weergavenaam" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__file_encoding +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__file_encoding +msgid "Encoding" +msgstr "Codering" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__attachment_ids +msgid "Files" +msgstr "Bestanden" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__header +msgid "Header" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__id +msgid "ID" +msgstr "ID" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Import" +msgstr "Import" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import +#, fuzzy +msgid "Import Bank Statement Files" +msgstr "Importeer bankafschrift" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_account_statement_import_sheet_mapping_wizard +msgid "Import Mapping" +msgstr "Import Mapping" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Imported Mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "" +"In case statement is multi-currency, column to get currency of transaction " +"from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "" +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original currency of transaction from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "" +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original transaction amount in original " +"transaction currency from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__shift_jis +msgid "Japanese (Shift JIS)" +msgstr "Japanese (Shift JIS)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_journal +msgid "Journal" +msgstr "Dagboek" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser____last_update +msgid "Last Modified on" +msgstr "Laatst gewijzigt op" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_uid +msgid "Last Updated by" +msgstr "Laatst gewijzigt door" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_date +#, fuzzy +msgid "Last Updated on" +msgstr "Laatst bewerkt door" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Mapping from %s" +msgstr "Mapping van %s" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__n/a +#, python-format +msgid "N/A" +msgstr "N.V.T." + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__name +msgid "Name" +msgstr "Naam" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__notes_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__notes_column +msgid "Notes column" +msgstr "Notitie Kolom" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Options" +msgstr "opties" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "Original amount column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "Original currency column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__partner_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__partner_name_column +msgid "Partner Name column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Partner's bank" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Partner's bank account" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__reference_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__reference_column +msgid "Reference column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Select a statement file to import mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__sheet_mapping_id +msgid "Sheet mapping" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "" +"Some statement formats use absolute amount value and indicate signof the " +"transaction by specifying if it was a debit or a credit one" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__state +msgid "State" +msgstr "Status" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.view_account_journal_form_n43 +msgid "Statement Import Map" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_statement_import_sheet_report_mappings +#: model:ir.ui.menu,name:account_statement_import_txt_xlsx.menu_statement_import_sheet_mapping +msgid "Statement Sheet Mappings" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_form +msgid "TXT/CSV/XLSX mapping:" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__quotechar +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__quotechar +msgid "Text qualifier" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_thousands_sep +msgid "Thousands Separator" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_format +msgid "Timestamp Format" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__timestamp_column +msgid "Timestamp column" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__big5 +msgid "Traditional Chinese (big5)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Transaction ID: %s; " +msgstr "Transactie ID: %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16 +msgid "UTF-16" +msgstr "UTF-16" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16-sig +msgid "UTF-16 (with BOM)" +msgstr "UTF-16 (with BOM)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8 +msgid "UTF-8" +msgstr "UTF-8" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8-sig +msgid "UTF-8 (with BOM)" +msgstr "UTF-8 (with BOM)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__gb18030 +msgid "Unified Chinese (gb18030)" +msgstr "Unified Chinese (gb18030)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__transaction_id_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__transaction_id_column +msgid "Unique transaction ID column" +msgstr "Unieke transactie ID kolom" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Upload Files" +msgstr "Upload bestanden" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Value of debit/credit column that indicates if it's a credit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Value of debit/credit column that indicates if it's a debit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-1 +msgid "Western (Latin-1 / ISO 8859-1)" +msgstr "Western (Latin-1 / ISO 8859-1)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1252 +msgid "Western (Windows-1252)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__comma +msgid "comma (,)" +msgstr "comma (,)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__dot +msgid "dot (.)" +msgstr "punt (,)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__none +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__none +msgid "none" +msgstr "geen" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__semicolon +msgid "semicolon (;)" +msgstr "puntcomma (;)" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__space +msgid "space" +msgstr "spatie" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__tab +msgid "tab" +msgstr "tab" diff --git a/account_statement_import_sheet_file/i18n/zh_CN.po b/account_statement_import_sheet_file/i18n/zh_CN.po new file mode 100644 index 000000000..cbe2b5c30 --- /dev/null +++ b/account_statement_import_sheet_file/i18n/zh_CN.po @@ -0,0 +1,527 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_bank_statement_import_txt_xlsx +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-08-07 04:59+0000\n" +"Last-Translator: Dong \n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.10\n" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Account: %s; " +msgstr "账户: %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__allow_back +msgid "Allow Back" +msgstr "允许返回" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount column" +msgstr "交易金额列" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__amount_column +msgid "Amount of transaction in journal's currency" +msgstr "原币的交易金额" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance after transaction in journal's currency" +msgstr "交易后的原币余额" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column +msgid "Balance column" +msgstr "余额列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-4 +msgid "Baltic (Latin-4 / ISO 8859-4)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Bank Account column" +msgstr "对方银行账号列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Bank Name column" +msgstr "对方开户行列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping +#, fuzzy +msgid "Bank Statement Import Sheet Mapping" +msgstr "银行对帐表格导入方案" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_mapping_wizard +#, fuzzy +msgid "Bank Statement Import Sheet Mapping Wizard" +msgstr "银行对帐表格导入映射向导" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import_sheet_parser +#, fuzzy +msgid "Bank Statement Import Sheet Parser" +msgstr "银行对帐表格导入解析" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Bank: %s; " +msgstr "银行 %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-2 +msgid "Central European (Latin-2 / ISO 8859-2)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_tree +msgid "Columns" +msgstr "列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_uid +msgid "Created by" +msgstr "创建人" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__create_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__create_date +msgid "Created on" +msgstr "创建时间" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Credit value" +msgstr "贷方标志值" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "Currency column" +msgstr "币别列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_r +msgid "Cyrillic (KOI8-R)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__koi8_u +msgid "Cyrillic (KOI8-U)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1251 +msgid "Cyrillic (Windows-1251)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Debit value" +msgstr "借方标志值" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Debit/Credit column" +msgstr "借贷标志列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "Debit/credit column" +msgstr "借贷标志列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_decimal_sep +msgid "Decimals Separator" +msgstr "小数分隔符" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__default_sheet_mapping_id +msgid "Default Sheet Mapping" +msgstr "默认表格导入方案" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__delimiter +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__delimiter +msgid "Delimiter" +msgstr "分隔符" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__description_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__description_column +msgid "Description column" +msgstr "摘要列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__display_name +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__display_name +msgid "Display Name" +msgstr "显示名称" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__file_encoding +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__file_encoding +msgid "Encoding" +msgstr "表格编码格式" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__attachment_ids +msgid "Files" +msgstr "文件" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__header +msgid "Header" +msgstr "头部" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__id +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__id +msgid "ID" +msgstr "ID" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Import" +msgstr "导入" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_statement_import +#, fuzzy +msgid "Import Bank Statement Files" +msgstr "导入银行对账单" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_account_statement_import_sheet_mapping_wizard +msgid "Import Mapping" +msgstr "导入方案" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Imported Mapping" +msgstr "已导入方案" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__currency_column +msgid "" +"In case statement is multi-currency, column to get currency of transaction " +"from" +msgstr "如果对账单包含多币别,指定获取交易币别的列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "" +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original currency of transaction from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "" +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original transaction amount in original " +"transaction currency from" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__shift_jis +msgid "Japanese (Shift JIS)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model,name:account_statement_import_txt_xlsx.model_account_journal +msgid "Journal" +msgstr "资金账户" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_journal____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard____last_update +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_uid +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__write_date +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_parser__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/wizards/account_statement_import_sheet_mapping_wizard.py:0 +#, python-format +msgid "Mapping from %s" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__n/a +#, python-format +msgid "N/A" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__name +msgid "Name" +msgstr "名称" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__notes_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__notes_column +msgid "Notes column" +msgstr "备注列名" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Options" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column +msgid "Original amount column" +msgstr "原币金额列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column +msgid "Original currency column" +msgstr "币别列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__partner_name_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__partner_name_column +msgid "Partner Name column" +msgstr "对方账户名列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_name_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_name_column +msgid "Partner's bank" +msgstr "对方开户行" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__bank_account_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__bank_account_column +msgid "Partner's bank account" +msgstr "对方银行账号" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__reference_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__reference_column +msgid "Reference column" +msgstr "编号列名" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Select a statement file to import mapping" +msgstr "选择要导入的银行对账单" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import__sheet_mapping_id +msgid "Sheet mapping" +msgstr "表格方案" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_credit_column +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_credit_column +msgid "" +"Some statement formats use absolute amount value and indicate signof the " +"transaction by specifying if it was a debit or a credit one" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__state +msgid "State" +msgstr "状态" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.view_account_journal_form_n43 +msgid "Statement Import Map" +msgstr "银行对账导入方案" + +#. module: account_statement_import_txt_xlsx +#: model:ir.actions.act_window,name:account_statement_import_txt_xlsx.action_statement_import_sheet_report_mappings +#: model:ir.ui.menu,name:account_statement_import_txt_xlsx.menu_statement_import_sheet_mapping +msgid "Statement Sheet Mappings" +msgstr "银行对账表格导入方案" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_form +msgid "TXT/CSV/XLSX mapping:" +msgstr "TXT/CSV/XLSX 表格导入方案:" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__quotechar +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__quotechar +msgid "Text qualifier" +msgstr "文本限定符" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__float_thousands_sep +msgid "Thousands Separator" +msgstr "千位符" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_format +msgid "Timestamp Format" +msgstr "日期格式" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__timestamp_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__timestamp_column +msgid "Timestamp column" +msgstr "日期列名" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__big5 +msgid "Traditional Chinese (big5)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import_sheet_parser.py:0 +#, python-format +msgid "Transaction ID: %s; " +msgstr "交易 ID: %s; " + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16 +msgid "UTF-16" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-16-sig +msgid "UTF-16 (with BOM)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8 +msgid "UTF-8" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__utf-8-sig +msgid "UTF-8 (with BOM)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__gb18030 +msgid "Unified Chinese (gb18030)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__transaction_id_column +#: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__transaction_id_column +msgid "Unique transaction ID column" +msgstr "唯一交易ID列名" + +#. module: account_statement_import_txt_xlsx +#: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_wizard_form +msgid "Upload Files" +msgstr "上传文件" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__credit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__credit_value +msgid "Value of debit/credit column that indicates if it's a credit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__debit_value +#: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__debit_value +msgid "Value of debit/credit column that indicates if it's a debit" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__iso-8859-1 +msgid "Western (Latin-1 / ISO 8859-1)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__file_encoding__windows-1252 +msgid "Western (Windows-1252)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__comma +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__comma +msgid "comma (,)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__dot +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__dot +msgid "dot (.)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_decimal_sep__none +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__float_thousands_sep__none +msgid "none" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__semicolon +msgid "semicolon (;)" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__space +msgid "space" +msgstr "" + +#. module: account_statement_import_txt_xlsx +#: model:ir.model.fields.selection,name:account_statement_import_txt_xlsx.selection__account_statement_import_sheet_mapping__delimiter__tab +msgid "tab" +msgstr "" diff --git a/account_statement_import_sheet_file/models/__init__.py b/account_statement_import_sheet_file/models/__init__.py new file mode 100644 index 000000000..af86f7c78 --- /dev/null +++ b/account_statement_import_sheet_file/models/__init__.py @@ -0,0 +1,6 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import account_statement_import_sheet_mapping +from . import account_statement_import_sheet_parser +from . import account_statement_import +from . import account_journal diff --git a/account_statement_import_sheet_file/models/account_journal.py b/account_statement_import_sheet_file/models/account_journal.py new file mode 100644 index 000000000..b6c3f86c3 --- /dev/null +++ b/account_statement_import_sheet_file/models/account_journal.py @@ -0,0 +1,18 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountJournal(models.Model): + _inherit = "account.journal" + + default_sheet_mapping_id = fields.Many2one( + comodel_name="account.statement.import.sheet.mapping", + ) + + def _get_bank_statements_available_import_formats(self): + res = super()._get_bank_statements_available_import_formats() + res.append("TXT/CSV/XSLX") + return res diff --git a/account_statement_import_sheet_file/models/account_statement_import.py b/account_statement_import_sheet_file/models/account_statement_import.py new file mode 100644 index 000000000..be961fb17 --- /dev/null +++ b/account_statement_import_sheet_file/models/account_statement_import.py @@ -0,0 +1,36 @@ +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import logging + +from odoo import fields, models + +_logger = logging.getLogger(__name__) + + +class AccountStatementImport(models.TransientModel): + _inherit = "account.statement.import" + + def _get_default_mapping_id(self): + return ( + self.env["account.journal"] + .browse(self.env.context.get("journal_id")) + .default_sheet_mapping_id + ) + + sheet_mapping_id = fields.Many2one( + string="Sheet mapping", + comodel_name="account.statement.import.sheet.mapping", + default=_get_default_mapping_id, + ) + + def _parse_file(self, data_file): + self.ensure_one() + try: + Parser = self.env["account.statement.import.sheet.parser"] + return Parser.parse(data_file, self.sheet_mapping_id) + except BaseException: + if self.env.context.get("account_statement_import_txt_xlsx_test"): + raise + _logger.warning("Sheet parser error", exc_info=True) + return super()._parse_file(data_file) diff --git a/account_statement_import_sheet_file/models/account_statement_import_sheet_mapping.py b/account_statement_import_sheet_file/models/account_statement_import_sheet_mapping.py new file mode 100644 index 000000000..4d7e7b579 --- /dev/null +++ b/account_statement_import_sheet_file/models/account_statement_import_sheet_mapping.py @@ -0,0 +1,166 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class AccountStatementImportSheetMapping(models.Model): + _name = "account.statement.import.sheet.mapping" + _description = "Bank Statement Import Sheet Mapping" + + name = fields.Char( + required=True, + ) + float_thousands_sep = fields.Selection( + string="Thousands Separator", + selection=[("dot", "dot (.)"), ("comma", "comma (,)"), ("none", "none")], + default="dot", + ) + float_decimal_sep = fields.Selection( + string="Decimals Separator", + selection=[("dot", "dot (.)"), ("comma", "comma (,)"), ("none", "none")], + default="comma", + ) + file_encoding = fields.Selection( + string="Encoding", + selection=[ + ("utf-8", "UTF-8"), + ("utf-8-sig", "UTF-8 (with BOM)"), + ("utf-16", "UTF-16"), + ("utf-16-sig", "UTF-16 (with BOM)"), + ("windows-1252", "Western (Windows-1252)"), + ("iso-8859-1", "Western (Latin-1 / ISO 8859-1)"), + ("iso-8859-2", "Central European (Latin-2 / ISO 8859-2)"), + ("iso-8859-4", "Baltic (Latin-4 / ISO 8859-4)"), + ("big5", "Traditional Chinese (big5)"), + ("gb18030", "Unified Chinese (gb18030)"), + ("shift_jis", "Japanese (Shift JIS)"), + ("windows-1251", "Cyrillic (Windows-1251)"), + ("koi8_r", "Cyrillic (KOI8-R)"), + ("koi8_u", "Cyrillic (KOI8-U)"), + ], + default="utf-8", + ) + delimiter = fields.Selection( + string="Delimiter", + selection=[ + ("dot", "dot (.)"), + ("comma", "comma (,)"), + ("semicolon", "semicolon (;)"), + ("tab", "tab"), + ("space", "space"), + ("n/a", "N/A"), + ], + default="comma", + ) + quotechar = fields.Char(string="Text qualifier", size=1, default='"') + timestamp_format = fields.Char(string="Timestamp Format", required=True) + timestamp_column = fields.Char(string="Timestamp column", required=True) + currency_column = fields.Char( + string="Currency column", + help=( + "In case statement is multi-currency, column to get currency of " + "transaction from" + ), + ) + amount_column = fields.Char( + string="Amount column", + required=True, + help="Amount of transaction in journal's currency", + ) + balance_column = fields.Char( + string="Balance column", + help="Balance after transaction in journal's currency", + ) + original_currency_column = fields.Char( + string="Original currency column", + help=( + "In case statement provides original currency for transactions " + "with automatic currency conversion, column to get original " + "currency of transaction from" + ), + ) + original_amount_column = fields.Char( + string="Original amount column", + help=( + "In case statement provides original currency for transactions " + "with automatic currency conversion, column to get original " + "transaction amount in original transaction currency from" + ), + ) + debit_credit_column = fields.Char( + string="Debit/credit column", + help=( + "Some statement formats use absolute amount value and indicate sign" + "of the transaction by specifying if it was a debit or a credit one" + ), + ) + debit_value = fields.Char( + string="Debit value", + help="Value of debit/credit column that indicates if it's a debit", + default="D", + ) + credit_value = fields.Char( + string="Credit value", + help="Value of debit/credit column that indicates if it's a credit", + default="C", + ) + transaction_id_column = fields.Char( + string="Unique transaction ID column", + ) + description_column = fields.Char( + string="Description column", + ) + notes_column = fields.Char( + string="Notes column", + ) + reference_column = fields.Char( + string="Reference column", + ) + partner_name_column = fields.Char( + string="Partner Name column", + ) + bank_name_column = fields.Char( + string="Bank Name column", + help="Partner's bank", + ) + bank_account_column = fields.Char( + string="Bank Account column", + help="Partner's bank account", + ) + + @api.onchange("float_thousands_sep") + def onchange_thousands_separator(self): + if "dot" == self.float_thousands_sep == self.float_decimal_sep: + self.float_decimal_sep = "comma" + elif "comma" == self.float_thousands_sep == self.float_decimal_sep: + self.float_decimal_sep = "dot" + + @api.onchange("float_decimal_sep") + def onchange_decimal_separator(self): + if "dot" == self.float_thousands_sep == self.float_decimal_sep: + self.float_thousands_sep = "comma" + elif "comma" == self.float_thousands_sep == self.float_decimal_sep: + self.float_thousands_sep = "dot" + + def _get_float_separators(self): + self.ensure_one() + separators = { + "dot": ".", + "comma": ",", + "none": "", + } + return ( + separators[self.float_thousands_sep], + separators[self.float_decimal_sep], + ) + + @api.model + def _decode_column_delimiter_character(self, delimiter): + return ( + {"dot": ".", "comma": ",", "semicolon": ";", "tab": "\t", "space": " "} + ).get(delimiter) + + def _get_column_delimiter_character(self): + return self._decode_column_delimiter_character(self.delimiter) diff --git a/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py b/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py new file mode 100644 index 000000000..460bfe565 --- /dev/null +++ b/account_statement_import_sheet_file/models/account_statement_import_sheet_parser.py @@ -0,0 +1,384 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import itertools +import logging +from datetime import datetime +from decimal import Decimal +from io import StringIO + +from odoo import _, api, models + +_logger = logging.getLogger(__name__) + +try: + from csv import reader + + import xlrd + from xlrd.xldate import xldate_as_datetime +except (ImportError, IOError) as err: # pragma: no cover + _logger.error(err) + + +class AccountStatementImportSheetParser(models.TransientModel): + _name = "account.statement.import.sheet.parser" + _description = "Bank Statement Import Sheet Parser" + + @api.model + def parse_header(self, data_file, encoding, csv_options): + try: + workbook = xlrd.open_workbook( + file_contents=data_file, + encoding_override=encoding if encoding else None, + ) + sheet = workbook.sheet_by_index(0) + values = sheet.row_values(0) + return [str(value) for value in values] + except xlrd.XLRDError: + pass + + data = StringIO(data_file.decode(encoding or "utf-8")) + csv_data = reader(data, **csv_options) + return list(next(csv_data)) + + @api.model + def parse(self, data_file, mapping): + journal = self.env["account.journal"].browse(self.env.context.get("journal_id")) + currency_code = (journal.currency_id or journal.company_id.currency_id).name + account_number = journal.bank_account_id.acc_number + + lines = self._parse_lines(mapping, data_file, currency_code) + if not lines: + return currency_code, account_number, [{"transactions": []}] + + lines = list(sorted(lines, key=lambda line: line["timestamp"])) + first_line = lines[0] + last_line = lines[-1] + data = { + "date": first_line["timestamp"].date(), + } + + if mapping.balance_column: + balance_start = first_line["balance"] + balance_start -= first_line["amount"] + balance_end = last_line["balance"] + data.update( + { + "balance_start": float(balance_start), + "balance_end_real": float(balance_end), + } + ) + + transactions = list( + itertools.chain.from_iterable( + map(lambda line: self._convert_line_to_transactions(line), lines) + ) + ) + data.update({"transactions": transactions}) + + return currency_code, account_number, [data] + + def _parse_lines(self, mapping, data_file, currency_code): + columns = dict() + try: + workbook = xlrd.open_workbook( + file_contents=data_file, + encoding_override=( + mapping.file_encoding if mapping.file_encoding else None + ), + ) + csv_or_xlsx = ( + workbook, + workbook.sheet_by_index(0), + ) + except xlrd.XLRDError: + csv_options = {} + csv_delimiter = mapping._get_column_delimiter_character() + if csv_delimiter: + csv_options["delimiter"] = csv_delimiter + if mapping.quotechar: + csv_options["quotechar"] = mapping.quotechar + csv_or_xlsx = reader( + StringIO(data_file.decode(mapping.file_encoding or "utf-8")), + **csv_options + ) + + if isinstance(csv_or_xlsx, tuple): + header = [str(value) for value in csv_or_xlsx[1].row_values(0)] + else: + header = [value.strip() for value in next(csv_or_xlsx)] + columns["timestamp_column"] = header.index(mapping.timestamp_column) + columns["currency_column"] = ( + header.index(mapping.currency_column) if mapping.currency_column else None + ) + columns["amount_column"] = header.index(mapping.amount_column) + columns["balance_column"] = ( + header.index(mapping.balance_column) if mapping.balance_column else None + ) + columns["original_currency_column"] = ( + header.index(mapping.original_currency_column) + if mapping.original_currency_column + else None + ) + columns["original_amount_column"] = ( + header.index(mapping.original_amount_column) + if mapping.original_amount_column + else None + ) + columns["debit_credit_column"] = ( + header.index(mapping.debit_credit_column) + if mapping.debit_credit_column + else None + ) + columns["transaction_id_column"] = ( + header.index(mapping.transaction_id_column) + if mapping.transaction_id_column + else None + ) + columns["description_column"] = ( + header.index(mapping.description_column) + if mapping.description_column + else None + ) + columns["notes_column"] = ( + header.index(mapping.notes_column) if mapping.notes_column else None + ) + columns["reference_column"] = ( + header.index(mapping.reference_column) if mapping.reference_column else None + ) + columns["partner_name_column"] = ( + header.index(mapping.partner_name_column) + if mapping.partner_name_column + else None + ) + columns["bank_name_column"] = ( + header.index(mapping.bank_name_column) if mapping.bank_name_column else None + ) + columns["bank_account_column"] = ( + header.index(mapping.bank_account_column) + if mapping.bank_account_column + else None + ) + return self._parse_rows(mapping, currency_code, csv_or_xlsx, columns) + + def _parse_rows(self, mapping, currency_code, csv_or_xlsx, columns): # noqa: C901 + if isinstance(csv_or_xlsx, tuple): + rows = range(1, csv_or_xlsx[1].nrows) + else: + rows = csv_or_xlsx + + lines = [] + for row in rows: + if isinstance(csv_or_xlsx, tuple): + book = csv_or_xlsx[0] + sheet = csv_or_xlsx[1] + values = [] + for col_index in range(sheet.row_len(row)): + cell_type = sheet.cell_type(row, col_index) + cell_value = sheet.cell_value(row, col_index) + if cell_type == xlrd.XL_CELL_DATE: + cell_value = xldate_as_datetime(cell_value, book.datemode) + values.append(cell_value) + else: + values = list(row) + + timestamp = values[columns["timestamp_column"]] + currency = ( + values[columns["currency_column"]] + if columns["currency_column"] is not None + else currency_code + ) + amount = values[columns["amount_column"]] + balance = ( + values[columns["balance_column"]] + if columns["balance_column"] is not None + else None + ) + original_currency = ( + values[columns["original_currency_column"]] + if columns["original_currency_column"] is not None + else None + ) + original_amount = ( + values[columns["original_amount_column"]] + if columns["original_amount_column"] is not None + else None + ) + debit_credit = ( + values[columns["debit_credit_column"]] + if columns["debit_credit_column"] is not None + else None + ) + transaction_id = ( + values[columns["transaction_id_column"]] + if columns["transaction_id_column"] is not None + else None + ) + description = ( + values[columns["description_column"]] + if columns["description_column"] is not None + else None + ) + notes = ( + values[columns["notes_column"]] + if columns["notes_column"] is not None + else None + ) + reference = ( + values[columns["reference_column"]] + if columns["reference_column"] is not None + else None + ) + partner_name = ( + values[columns["partner_name_column"]] + if columns["partner_name_column"] is not None + else None + ) + bank_name = ( + values[columns["bank_name_column"]] + if columns["bank_name_column"] is not None + else None + ) + bank_account = ( + values[columns["bank_account_column"]] + if columns["bank_account_column"] is not None + else None + ) + + if currency != currency_code: + continue + + if isinstance(timestamp, str): + timestamp = datetime.strptime(timestamp, mapping.timestamp_format) + + amount = self._parse_decimal(amount, mapping) + if balance: + balance = self._parse_decimal(balance, mapping) + else: + balance = None + + if debit_credit: + amount = amount.copy_abs() + if debit_credit == mapping.debit_value: + amount = -amount + + if original_amount: + original_amount = self._parse_decimal( + original_amount, mapping + ).copy_sign(amount) + else: + original_amount = 0.0 + + line = { + "timestamp": timestamp, + "amount": amount, + "currency": currency, + "original_amount": original_amount, + "original_currency": original_currency, + } + if balance is not None: + line["balance"] = balance + if transaction_id is not None: + line["transaction_id"] = transaction_id + if description is not None: + line["description"] = description + if notes is not None: + line["notes"] = notes + if reference is not None: + line["reference"] = reference + if partner_name is not None: + line["partner_name"] = partner_name + if bank_name is not None: + line["bank_name"] = bank_name + if bank_account is not None: + line["bank_account"] = bank_account + lines.append(line) + return lines + + @api.model + def _convert_line_to_transactions(self, line): # noqa: C901 + """Hook for extension""" + timestamp = line["timestamp"] + amount = line["amount"] + currency = line["currency"] + original_amount = line["original_amount"] + original_currency = line["original_currency"] + transaction_id = line.get("transaction_id") + description = line.get("description") + notes = line.get("notes") + reference = line.get("reference") + partner_name = line.get("partner_name") + bank_name = line.get("bank_name") + bank_account = line.get("bank_account") + + transaction = { + "date": timestamp, + "amount": str(amount), + } + + if original_currency == currency: + original_currency = None + if not amount: + amount = original_amount + original_amount = "0.0" + + if original_currency: + original_currency = self.env["res.currency"].search( + [("name", "=", original_currency)], + limit=1, + ) + if original_currency: + transaction["foreign_currency_id"] = original_currency.id + if original_amount: + transaction["amount_currency"] = str(original_amount) + + if currency: + currency = self.env["res.currency"].search( + [("name", "=", currency)], + limit=1, + ) + if currency: + transaction["currency_id"] = currency.id + + if transaction_id: + transaction["unique_import_id"] = "{}-{}".format( + transaction_id, + int(timestamp.timestamp()), + ) + + transaction["payment_ref"] = description or _("N/A") + if reference: + transaction["ref"] = reference + + note = "" + if bank_name: + note += _("Bank: %s; ") % (bank_name,) + if bank_account: + note += _("Account: %s; ") % (bank_account,) + if transaction_id: + note += _("Transaction ID: %s; ") % (transaction_id,) + if note and notes: + note = "{}\n{}".format(note, note.strip()) + elif note: + note = note.strip() + if note: + transaction["narration"] = note + + if partner_name: + transaction["partner_name"] = partner_name + if bank_account: + transaction["account_number"] = bank_account + + return [transaction] + + @api.model + def _parse_decimal(self, value, mapping): + if isinstance(value, Decimal): + return value + elif isinstance(value, float): + return Decimal(value) + thousands, decimal = mapping._get_float_separators() + value = value.replace(thousands, "") + value = value.replace(decimal, ".") + return Decimal(value) diff --git a/account_statement_import_sheet_file/readme/CONFIGURE.rst b/account_statement_import_sheet_file/readme/CONFIGURE.rst new file mode 100644 index 000000000..ca7a8b507 --- /dev/null +++ b/account_statement_import_sheet_file/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +To create TXT/CSV/XLSX statement sheet columns mapping: + +#. Open *Invoicing > Configuration > Accounting > Statement Sheet Mappings* +#. Create mapping(s) according to your online banking software statement format diff --git a/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst b/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..b5e09af68 --- /dev/null +++ b/account_statement_import_sheet_file/readme/CONTRIBUTORS.rst @@ -0,0 +1,15 @@ +* Alexis de Lattre +* Sebastien BEAU +* Tecnativa (https://www.tecnativa.com) + + * Vicent Cubells + * Victor M.M. Torres + +* ForgeFlow (https://www.forgeflow.com) + + * Jordi Ballester Alomar + * Miquel Raïch Regué + +* `CorporateHub `__ + + * Alexey Pelykh diff --git a/account_statement_import_sheet_file/readme/DESCRIPTION.rst b/account_statement_import_sheet_file/readme/DESCRIPTION.rst new file mode 100644 index 000000000..1862d60f1 --- /dev/null +++ b/account_statement_import_sheet_file/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows you to import any TXT/CSV or XLSX file in Odoo as bank +statements. diff --git a/account_statement_import_sheet_file/readme/HISTORY.rst b/account_statement_import_sheet_file/readme/HISTORY.rst new file mode 100644 index 000000000..fe7b1addc --- /dev/null +++ b/account_statement_import_sheet_file/readme/HISTORY.rst @@ -0,0 +1,7 @@ +12.0.2.0.0 +~~~~~~~~~~ + +* [BREAKING] New mapping, please review mappings after upgrade. +* [BREAKING] Different bank accounts have to be used per each currency. +* [ADD] Support for both Statement and Activity reports. +* [ADD] Separate fee and currency exchange parsing. diff --git a/account_statement_import_sheet_file/readme/USAGE.rst b/account_statement_import_sheet_file/readme/USAGE.rst new file mode 100644 index 000000000..1ed86b40e --- /dev/null +++ b/account_statement_import_sheet_file/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +#. Get statement in TXT/CSV or XLSX from your online banking software +#. Go to Odoo and and import the statement file, selecting corresponding format diff --git a/account_statement_import_sheet_file/security/ir.model.access.csv b/account_statement_import_sheet_file/security/ir.model.access.csv new file mode 100644 index 000000000..aa8c3d955 --- /dev/null +++ b/account_statement_import_sheet_file/security/ir.model.access.csv @@ -0,0 +1,5 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +access_account_statement_import_sheet_mapping_manager,account.statement.import.sheet.mapping:account.group_account_manager,model_account_statement_import_sheet_mapping,account.group_account_manager,1,1,1,1 +access_account_statement_import_sheet_mapping_user,account.statement.import.sheet.mapping:account.group_account_user,model_account_statement_import_sheet_mapping,account.group_account_user,1,0,0,0 +access_account_statement_import_sheet_parser,account.statement.import.sheet.parser:account.group_account_user,model_account_statement_import_sheet_parser,account.group_account_user,1,1,1,1 +access_account_statement_import_sheet_mapping_wizard,Full access on account.statement.import.sheet.mapping.wizard,model_account_statement_import_sheet_mapping_wizard,account.group_account_user,1,1,1,1 diff --git a/account_statement_import_sheet_file/static/description/icon.png b/account_statement_import_sheet_file/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpn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sfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/account_statement_import_sheet_file/static/description/index.html b/account_statement_import_sheet_file/static/description/index.html new file mode 100644 index 000000000..88ea98fa0 --- /dev/null +++ b/account_statement_import_sheet_file/static/description/index.html @@ -0,0 +1,472 @@ + + + + + + +Bank Statement TXT/CSV/XLSX Import + + + +
+

Bank Statement TXT/CSV/XLSX Import

+ + +

Beta License: AGPL-3 OCA/bank-statement-import Translate me on Weblate Try me on Runbot

+

This module allows you to import any TXT/CSV or XLSX file in Odoo as bank +statements.

+

Table of contents

+ +
+

Configuration

+

To create TXT/CSV/XLSX statement sheet columns mapping:

+
    +
  1. Open Invoicing > Configuration > Accounting > Statement Sheet Mappings
  2. +
  3. Create mapping(s) according to your online banking software statement format
  4. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Get statement in TXT/CSV or XLSX from your online banking software
  2. +
  3. Go to Odoo and and import the statement file, selecting corresponding format
  4. +
+
+
+

Changelog

+
+

12.0.2.0.0

+
    +
  • [BREAKING] New mapping, please review mappings after upgrade.
  • +
  • [BREAKING] Different bank accounts have to be used per each currency.
  • +
  • [ADD] Support for both Statement and Activity reports.
  • +
  • [ADD] Separate fee and currency exchange parsing.
  • +
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
  • CorporateHub
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

alexey-pelykh

+

This module is part of the OCA/bank-statement-import project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_statement_import_sheet_file/tests/__init__.py b/account_statement_import_sheet_file/tests/__init__.py new file mode 100644 index 000000000..426d68385 --- /dev/null +++ b/account_statement_import_sheet_file/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import test_account_statement_import_txt_xlsx diff --git a/account_statement_import_sheet_file/tests/fixtures/balance.csv b/account_statement_import_sheet_file/tests/fixtures/balance.csv new file mode 100644 index 000000000..c6a000f0c --- /dev/null +++ b/account_statement_import_sheet_file/tests/fixtures/balance.csv @@ -0,0 +1,3 @@ +"Date","Label","Amount","Balance","Partner Name","Bank Account" +"12/15/2018","Your best supplier","-33.50","-23.50","John Doe","123456789" +"12/15/2018","Your payment","1,533.50","1,510.00","Azure Interior","" diff --git a/account_statement_import_sheet_file/tests/fixtures/debit_credit.csv b/account_statement_import_sheet_file/tests/fixtures/debit_credit.csv new file mode 100644 index 000000000..936e32aa8 --- /dev/null +++ b/account_statement_import_sheet_file/tests/fixtures/debit_credit.csv @@ -0,0 +1,3 @@ +"Date","Label","Amount","D/C","Balance","Partner Name","Bank Account" +"12/15/2018","Your best supplier","33.50","D","-23.50","John Doe","123456789" +"12/15/2018","Your payment","-1,533.50","C","1,510.00","Azure Interior","" diff --git a/account_statement_import_sheet_file/tests/fixtures/empty_statement_en.csv b/account_statement_import_sheet_file/tests/fixtures/empty_statement_en.csv new file mode 100644 index 000000000..696c59bab --- /dev/null +++ b/account_statement_import_sheet_file/tests/fixtures/empty_statement_en.csv @@ -0,0 +1 @@ +"Date","Label","Currency","Amount","Amount Currency","Partner Name","Bank Account" diff --git a/account_statement_import_sheet_file/tests/fixtures/empty_statement_en.xlsx b/account_statement_import_sheet_file/tests/fixtures/empty_statement_en.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..5ca47652c2d0e6661f9bf8f0bc5ee7e0ab5e21e7 GIT binary patch literal 9041 zcmeHN1y@|jwr(^K+&#E9?oM!bcWvC=HNgo18V`~nK@)S9Hgyq5VPzQrWBRQVEt>nOAj zlR;Iuy*sJ5#9Tky#^xzI>K>qmql--@S=bl~za?BxqXHFj9d&v$wFcL_RQXmn zx_XXj6LaVl*6_D2sLLa(@J+2eFBCZmD~qEqOZ0l*+5y}A4g7uE=-$L!s@yel<5(Lr z>1V$TArGCH1E|==RO6PjJB|i)i{Rub44rn8E#FhGV-a_+5?M56$G^2u!l!UxTr23y zmQd#7VF(TU*gsIu+pc_MPVDbkIR0!4R`TWv`#Z*7<3+m|`anB5RY1hiTK}Ga-{IJ{ ze%SF@%3curBRl}`^aKM?`3o#-G+8MxA-1LfK^+nVmd36idp8#5pV$Av@xK^@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T~4cdjoz33Ibj%Zn1U!`G{(lOUB%|(+sGfL zIpyC$6R6^MZPn$Aj#&+=HxJ3AN8KKItJ|f+i1;55ebX>YFMZhdc`)eYju9xP-lAJ+ zV#fCar>8l9$tyH(Jot-N zV!l9A7+*9K%=-yDF;(ANtOx??kI+154)&l0?(QqeBGv@oLzNYcD)`PLY;f}w?H1o!& zSV!bB&Hrms6CsbvP!i(oZsqK5qUG&k<@W5a2`#xxBYX35-UpKjVBM7JfN53aq zDkZ>R0ik4n>9m)bbS1Kztb-<{DBU}t(8dFK(5NwbUNtfkWZC|vr;scfFZ)N|J8h=d zBwl9?>B_Pj=0ri2W zZpjf0tq<$}xO(4TD-==}aK|`WMc)e{yjmPyN7G~K6WP`tcyLwRSvN1Zi-ruRGbO@Y`~gJO7*sOuutshT1x8VKe0X6E*0 z;$}1RpZ34^G=IjqJ%HcrF@75b^3FHv<*< E1Br`?4gdfE literal 0 HcmV?d00001 diff --git a/account_statement_import_sheet_file/tests/test_account_statement_import_txt_xlsx.py b/account_statement_import_sheet_file/tests/test_account_statement_import_txt_xlsx.py new file mode 100644 index 000000000..9236b16f2 --- /dev/null +++ b/account_statement_import_sheet_file/tests/test_account_statement_import_txt_xlsx.py @@ -0,0 +1,345 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from base64 import b64encode +from os import path + +from odoo import fields +from odoo.exceptions import UserError +from odoo.tests import common + + +class TestAccountBankStatementImportTxtXlsx(common.TransactionCase): + def setUp(self): + super().setUp() + + self.now = fields.Datetime.now() + self.currency_eur = self.env.ref("base.EUR") + self.currency_usd = self.env.ref("base.USD") + self.sample_statement_map = self.env.ref( + "account_statement_import_txt_xlsx.sample_statement_map" + ) + self.AccountJournal = self.env["account.journal"] + self.AccountBankStatement = self.env["account.bank.statement"] + self.AccountStatementImport = self.env["account.statement.import"] + self.AccountStatementImportSheetMapping = self.env[ + "account.statement.import.sheet.mapping" + ] + self.AccountStatementImportSheetMappingWizard = self.env[ + "account.statement.import.sheet.mapping.wizard" + ] + + def _data_file(self, filename, encoding=None): + mode = "rt" if encoding else "rb" + with open(path.join(path.dirname(__file__), filename), mode) as file: + data = file.read() + if encoding: + data = data.encode(encoding) + return b64encode(data) + + def test_import_csv_file(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/sample_statement_en.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/sample_statement_en.csv", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 2) + + def test_import_empty_csv_file(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/empty_statement_en.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/empty_statement_en.csv", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + with self.assertRaises(UserError): + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 0) + + def test_import_xlsx_file(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/sample_statement_en.xlsx") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/sample_statement_en.xlsx", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 2) + + def test_import_empty_xlsx_file(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/empty_statement_en.xlsx") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/empty_statement_en.xlsx", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + with self.assertRaises(UserError): + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 0) + + def test_mapping_import_wizard_xlsx(self): + with common.Form(self.AccountStatementImportSheetMappingWizard) as form: + attachment = self.env["ir.attachment"].create( + { + "name": "fixtures/empty_statement_en.xlsx", + "datas": self._data_file("fixtures/empty_statement_en.xlsx"), + } + ) + form.attachment_ids.add(attachment) + self.assertEqual(len(form.header), 90) + self.assertEqual( + len( + self.AccountStatementImportSheetMappingWizard.with_context( + header=form.header, + ).statement_columns() + ), + 7, + ) + form.timestamp_column = "Date" + form.amount_column = "Amount" + wizard = form.save() + wizard.import_mapping() + + def test_mapping_import_wizard_csv(self): + with common.Form(self.AccountStatementImportSheetMappingWizard) as form: + attachment = self.env["ir.attachment"].create( + { + "name": "fixtures/empty_statement_en.csv", + "datas": self._data_file("fixtures/empty_statement_en.csv"), + } + ) + form.attachment_ids.add(attachment) + self.assertEqual(len(form.header), 90) + self.assertEqual( + len( + self.AccountStatementImportSheetMappingWizard.with_context( + header=form.header, + ).statement_columns() + ), + 7, + ) + form.timestamp_column = "Date" + form.amount_column = "Amount" + wizard = form.save() + wizard.import_mapping() + + def test_original_currency(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/original_currency.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/original_currency.csv", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 1) + + line = statement.line_ids + self.assertEqual(line.currency_id, self.currency_usd) + self.assertEqual(line.amount, 1525.0) + self.assertEqual(line.foreign_currency_id, self.currency_eur) + self.assertEqual(line.amount_currency, 1000.0) + + def test_original_currency_empty(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + data = self._data_file("fixtures/original_currency_empty.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/original_currency_empty.csv", + "statement_file": data, + "sheet_mapping_id": self.sample_statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 1) + + line = statement.line_ids + self.assertFalse(line.foreign_currency_id) + self.assertEqual(line.amount_currency, 0.0) + + def test_multi_currency(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + statement_map = self.sample_statement_map.copy( + { + "currency_column": "Currency", + "original_currency_column": None, + "original_amount_column": None, + } + ) + data = self._data_file("fixtures/multi_currency.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/multi_currency.csv", + "statement_file": data, + "sheet_mapping_id": statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 1) + + line = statement.line_ids + self.assertFalse(line.foreign_currency_id) + self.assertEqual(line.amount, -33.5) + + def test_balance(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + statement_map = self.sample_statement_map.copy( + { + "balance_column": "Balance", + "original_currency_column": None, + "original_amount_column": None, + } + ) + data = self._data_file("fixtures/balance.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/balance.csv", + "statement_file": data, + "sheet_mapping_id": statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 2) + self.assertEqual(statement.balance_start, 10.0) + self.assertEqual(statement.balance_end_real, 1510.0) + self.assertEqual(statement.balance_end, 1510.0) + + def test_debit_credit(self): + journal = self.AccountJournal.create( + { + "name": "Bank", + "type": "bank", + "code": "BANK", + "currency_id": self.currency_usd.id, + } + ) + statement_map = self.sample_statement_map.copy( + { + "balance_column": "Balance", + "original_currency_column": None, + "original_amount_column": None, + "debit_credit_column": "D/C", + "debit_value": "D", + "credit_value": "C", + } + ) + data = self._data_file("fixtures/debit_credit.csv", "utf-8") + wizard = self.AccountStatementImport.with_context(journal_id=journal.id).create( + { + "statement_filename": "fixtures/debit_credit.csv", + "statement_file": data, + "sheet_mapping_id": statement_map.id, + } + ) + wizard.with_context( + account_statement_import_txt_xlsx_test=True + ).import_file_button() + statement = self.AccountBankStatement.search([("journal_id", "=", journal.id)]) + self.assertEqual(len(statement), 1) + self.assertEqual(len(statement.line_ids), 2) + self.assertEqual(statement.balance_start, 10.0) + self.assertEqual(statement.balance_end_real, 1510.0) + self.assertEqual(statement.balance_end, 1510.0) diff --git a/account_statement_import_sheet_file/views/account_journal_views.xml b/account_statement_import_sheet_file/views/account_journal_views.xml new file mode 100644 index 000000000..92b17a964 --- /dev/null +++ b/account_statement_import_sheet_file/views/account_journal_views.xml @@ -0,0 +1,17 @@ + + + + account.journal + + + + + + + + + + diff --git a/account_statement_import_sheet_file/views/account_statement_import.xml b/account_statement_import_sheet_file/views/account_statement_import.xml new file mode 100644 index 000000000..4ef359aa7 --- /dev/null +++ b/account_statement_import_sheet_file/views/account_statement_import.xml @@ -0,0 +1,23 @@ + + + + + account.statement.import + account.statement.import + + + +
  • + TXT/CSV/XLSX mapping: +
  • +
    +
    +
    +
    diff --git a/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml b/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml new file mode 100644 index 000000000..8f9718b5a --- /dev/null +++ b/account_statement_import_sheet_file/views/account_statement_import_sheet_mapping.xml @@ -0,0 +1,89 @@ + + + + + account.statement.import.sheet.mapping.form + account.statement.import.sheet.mapping + + + + + + + + account.statement.import.sheet.mapping.tree + account.statement.import.sheet.mapping + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + + Statement Sheet Mappings + account.statement.import.sheet.mapping + tree,form + + +
    diff --git a/account_statement_import_sheet_file/wizards/__init__.py b/account_statement_import_sheet_file/wizards/__init__.py new file mode 100644 index 000000000..a807f2d62 --- /dev/null +++ b/account_statement_import_sheet_file/wizards/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import account_statement_import_sheet_mapping_wizard diff --git a/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.py b/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.py new file mode 100644 index 000000000..2e38de4b8 --- /dev/null +++ b/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.py @@ -0,0 +1,198 @@ +# Copyright 2019 ForgeFlow, S.L. +# Copyright 2020 CorporateHub (https://corporatehub.eu) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import json +from base64 import b64decode +from os import path + +from odoo import _, api, fields, models + + +class AccountStatementImportSheetMappingWizard(models.TransientModel): + _name = "account.statement.import.sheet.mapping.wizard" + _description = "Bank Statement Import Sheet Mapping Wizard" + _inherit = ["multi.step.wizard.mixin"] + + attachment_ids = fields.Many2many( + comodel_name="ir.attachment", + string="Files", + required=True, + relation="account_statement_import_sheet_mapping_wiz_attachment_rel", + ) + header = fields.Char() + file_encoding = fields.Selection( + string="Encoding", + selection=lambda self: self._selection_file_encoding(), + ) + delimiter = fields.Selection( + string="Delimiter", + selection=lambda self: self._selection_delimiter(), + ) + quotechar = fields.Char( + string="Text qualifier", + size=1, + ) + timestamp_column = fields.Char( + string="Timestamp column", + ) + currency_column = fields.Char( + string="Currency column", + help=( + "In case statement is multi-currency, column to get currency of " + "transaction from" + ), + ) + amount_column = fields.Char( + string="Amount column", + help="Amount of transaction in journal's currency", + ) + balance_column = fields.Char( + string="Balance column", + help="Balance after transaction in journal's currency", + ) + original_currency_column = fields.Char( + string="Original currency column", + help=( + "In case statement provides original currency for transactions " + "with automatic currency conversion, column to get original " + "currency of transaction from" + ), + ) + original_amount_column = fields.Char( + string="Original amount column", + help=( + "In case statement provides original currency for transactions " + "with automatic currency conversion, column to get original " + "transaction amount in original transaction currency from" + ), + ) + debit_credit_column = fields.Char( + string="Debit/credit column", + help=( + "Some statement formats use absolute amount value and indicate sign" + "of the transaction by specifying if it was a debit or a credit one" + ), + ) + debit_value = fields.Char( + string="Debit value", + help="Value of debit/credit column that indicates if it's a debit", + default="D", + ) + credit_value = fields.Char( + string="Credit value", + help="Value of debit/credit column that indicates if it's a credit", + default="C", + ) + transaction_id_column = fields.Char( + string="Unique transaction ID column", + ) + description_column = fields.Char( + string="Description column", + ) + notes_column = fields.Char( + string="Notes column", + ) + reference_column = fields.Char( + string="Reference column", + ) + partner_name_column = fields.Char( + string="Partner Name column", + ) + bank_name_column = fields.Char( + string="Bank Name column", + help="Partner's bank", + ) + bank_account_column = fields.Char( + string="Bank Account column", + help="Partner's bank account", + ) + + @api.model + def _selection_file_encoding(self): + return ( + self.env["account.statement.import.sheet.mapping"] + ._fields["file_encoding"] + .selection + ) + + @api.model + def _selection_delimiter(self): + return ( + self.env["account.statement.import.sheet.mapping"] + ._fields["delimiter"] + .selection + ) + + @api.onchange("attachment_ids") + def _onchange_attachment_ids(self): + Parser = self.env["account.statement.import.sheet.parser"] + Mapping = self.env["account.statement.import.sheet.mapping"] + if not self.attachment_ids: + return + csv_options = {} + if self.delimiter: + csv_options["delimiter"] = Mapping._decode_column_delimiter_character( + self.delimiter + ) + if self.quotechar: + csv_options["quotechar"] = self.quotechar + header = [] + for data_file in self.attachment_ids: + header += Parser.parse_header( + b64decode(data_file.datas), self.file_encoding, csv_options + ) + header = list(set(header)) + self.header = json.dumps(header) + + @api.model + def statement_columns(self): + header = self.env.context.get("header") + if not header: + return [] + return [(x, x) for x in json.loads(header)] + + def _get_mapping_values(self): + """Hook for extension""" + self.ensure_one() + filename = "& ".join(self.attachment_ids.mapped("name")) + return { + "name": _("Mapping from %s") % path.basename(filename), + "float_thousands_sep": "comma", + "float_decimal_sep": "dot", + "file_encoding": self.file_encoding, + "delimiter": self.delimiter, + "quotechar": self.quotechar, + "timestamp_format": "%d/%m/%Y", + "timestamp_column": self.timestamp_column, + "currency_column": self.currency_column, + "amount_column": self.amount_column, + "balance_column": self.balance_column, + "original_currency_column": self.original_currency_column, + "original_amount_column": self.original_amount_column, + "debit_credit_column": self.debit_credit_column, + "debit_value": self.debit_value, + "credit_value": self.credit_value, + "transaction_id_column": self.transaction_id_column, + "description_column": self.description_column, + "notes_column": self.notes_column, + "reference_column": self.reference_column, + "partner_name_column": self.partner_name_column, + "bank_name_column": self.bank_name_column, + "bank_account_column": self.bank_account_column, + } + + def import_mapping(self): + self.ensure_one() + mapping = self.env["account.statement.import.sheet.mapping"].create( + self._get_mapping_values() + ) + return { + "type": "ir.actions.act_window", + "name": _("Imported Mapping"), + "res_model": "account.statement.import.sheet.mapping", + "res_id": mapping.id, + "view_mode": "form", + "view_id": False, + "target": "current", + } diff --git a/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.xml b/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.xml new file mode 100644 index 000000000..51097816f --- /dev/null +++ b/account_statement_import_sheet_file/wizards/account_statement_import_sheet_mapping_wizard.xml @@ -0,0 +1,162 @@ + + + + + account.statement.import.sheet.mapping.wizard.form + account.statement.import.sheet.mapping.wizard + primary + + + +

    Select a statement file to import mapping

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +