mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[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 <marco.colombo@gmail.com>
This commit is contained in:
124
account_statement_import_txt_xlsx/README.rst
Normal file
124
account_statement_import_txt_xlsx/README.rst
Normal file
@@ -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 <https://github.com/OCA/bank-statement-import/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 <https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_txt_xlsx%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* ForgeFlow
|
||||
* CorporateHub
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Sebastien BEAU <sebastien.beau@akretion.com>
|
||||
* Tecnativa (https://www.tecnativa.com)
|
||||
|
||||
* Vicent Cubells <vicent.cubells@tecnativa.com>
|
||||
* Victor M.M. Torres <victor.martin@tecnativa.com>
|
||||
|
||||
* ForgeFlow (https://www.forgeflow.com)
|
||||
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
* Miquel Raïch Regué <miquel.raich@forgeflow.com>
|
||||
|
||||
* `CorporateHub <https://corporatehub.eu/>`__
|
||||
|
||||
* Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||
|
||||
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 <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-alexey-pelykh|
|
||||
|
||||
This module is part of the `OCA/bank-statement-import <https://github.com/OCA/bank-statement-import/tree/14.0/account_statement_import_txt_xlsx>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
2
account_statement_import_txt_xlsx/__init__.py
Normal file
2
account_statement_import_txt_xlsx/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from . import models
|
||||
from . import wizards
|
||||
29
account_statement_import_txt_xlsx/__manifest__.py
Normal file
29
account_statement_import_txt_xlsx/__manifest__.py
Normal file
@@ -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",
|
||||
],
|
||||
}
|
||||
23
account_statement_import_txt_xlsx/data/map_data.xml
Normal file
23
account_statement_import_txt_xlsx/data/map_data.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2019 ForgeFlow, S.L.
|
||||
Copyright 2020 CorporateHub (https://corporatehub.eu)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo noupdate="1">
|
||||
<record id="sample_statement_map" model="account.statement.import.sheet.mapping">
|
||||
<field name="name">Sample Statement</field>
|
||||
<field name="float_thousands_sep">comma</field>
|
||||
<field name="float_decimal_sep">dot</field>
|
||||
<field name="delimiter">comma</field>
|
||||
<field name="quotechar">"</field>
|
||||
<field name="timestamp_format">%m/%d/%Y</field>
|
||||
<field name="timestamp_column">Date</field>
|
||||
<field name="amount_column">Amount</field>
|
||||
<field name="original_currency_column">Currency</field>
|
||||
<field name="original_amount_column">Amount Currency</field>
|
||||
<field name="description_column">Label</field>
|
||||
<field name="partner_name_column">Partner Name</field>
|
||||
<field name="bank_account_column">Bank Account</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -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 ""
|
||||
521
account_statement_import_txt_xlsx/i18n/nl.po
Normal file
521
account_statement_import_txt_xlsx/i18n/nl.po
Normal file
@@ -0,0 +1,521 @@
|
||||
# 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 <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\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_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 "Bankafschrift import mapping"
|
||||
|
||||
#. 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
|
||||
#, fuzzy
|
||||
msgid "Account Bank Statement Import Sheet Mapping Wizard"
|
||||
msgstr "Bankafschrift mapping guids"
|
||||
|
||||
#. module: account_bank_statement_import_txt_xlsx
|
||||
#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_bank_statement_import_sheet_parser
|
||||
#, fuzzy
|
||||
msgid "Account Bank Statement Import Sheet Parser"
|
||||
msgstr "Bankafschrift parser"
|
||||
|
||||
#. 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 "Rekening: %s; "
|
||||
|
||||
#. 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 "Bedrag kolom"
|
||||
|
||||
#. 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 "Baltic (Latin-4 / ISO 8859-4)"
|
||||
|
||||
#. 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 "Bankrekening Kolom"
|
||||
|
||||
#. 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 "Bank naam kolom"
|
||||
|
||||
#. 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 "Bank: %s; "
|
||||
|
||||
#. 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 "Central European (Latin-2 / ISO 8859-2)"
|
||||
|
||||
#. 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 "Kolommen"
|
||||
|
||||
#. 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 "Aangemaakt door"
|
||||
|
||||
#. 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 "Aangemaakt op"
|
||||
|
||||
#. 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 "Valuta Kolom"
|
||||
|
||||
#. 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 "Cyrillic (KOI8-R)"
|
||||
|
||||
#. 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 "Cyrillic (KOI8-U)"
|
||||
|
||||
#. 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 "Cyrillic (Windows-1251)"
|
||||
|
||||
#. 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 "Decimaal scheidingsteken"
|
||||
|
||||
#. 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 "Standaard afschrift mapping"
|
||||
|
||||
#. 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 "Scheidingsteken"
|
||||
|
||||
#. 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 "Kolom omschrijving"
|
||||
|
||||
#. 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 "Weergavenaam"
|
||||
|
||||
#. 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 "Codering"
|
||||
|
||||
#. 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 "Bestanden"
|
||||
|
||||
#. 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 "ID"
|
||||
|
||||
#. 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 "Import"
|
||||
|
||||
#. 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 "Importeer bankafschrift"
|
||||
|
||||
#. 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 "Import Mapping"
|
||||
|
||||
#. 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 "Japanese (Shift JIS)"
|
||||
|
||||
#. module: account_bank_statement_import_txt_xlsx
|
||||
#: model:ir.model,name:account_bank_statement_import_txt_xlsx.model_account_journal
|
||||
msgid "Journal"
|
||||
msgstr "Dagboek"
|
||||
|
||||
#. 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 "Laatst gewijzigt op"
|
||||
|
||||
#. 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 "Laatst gewijzigt door"
|
||||
|
||||
#. 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
|
||||
#, fuzzy
|
||||
msgid "Last Updated on"
|
||||
msgstr "Laatst bewerkt door"
|
||||
|
||||
#. 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 "Mapping van %s"
|
||||
|
||||
#. 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 "N.V.T."
|
||||
|
||||
#. 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 "Naam"
|
||||
|
||||
#. 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 "Notitie Kolom"
|
||||
|
||||
#. 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 "opties"
|
||||
|
||||
#. 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 "Status"
|
||||
|
||||
#. 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 "Transactie ID: %s; "
|
||||
|
||||
#. 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 "UTF-16"
|
||||
|
||||
#. 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 "UTF-16 (with BOM)"
|
||||
|
||||
#. 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 "UTF-8"
|
||||
|
||||
#. 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 "UTF-8 (with BOM)"
|
||||
|
||||
#. 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 "Unified Chinese (gb18030)"
|
||||
|
||||
#. 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 "Unieke transactie ID kolom"
|
||||
|
||||
#. 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 "Upload bestanden"
|
||||
|
||||
#. 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 "Western (Latin-1 / ISO 8859-1)"
|
||||
|
||||
#. 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 "comma (,)"
|
||||
|
||||
#. 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 "punt (,)"
|
||||
|
||||
#. 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 "geen"
|
||||
|
||||
#. 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 "puntcomma (;)"
|
||||
|
||||
#. 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 "spatie"
|
||||
|
||||
#. 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 "tab"
|
||||
518
account_statement_import_txt_xlsx/i18n/zh_CN.po
Normal file
518
account_statement_import_txt_xlsx/i18n/zh_CN.po
Normal file
@@ -0,0 +1,518 @@
|
||||
# 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 <dong@freshoo.cn>\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_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 "账户: %s; "
|
||||
|
||||
#. 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 "银行 %s; "
|
||||
|
||||
#. 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 "ID"
|
||||
|
||||
#. 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 "TXT/CSV/XLSX 表格导入方案:"
|
||||
|
||||
#. 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 "交易 ID: %s; "
|
||||
|
||||
#. 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 "唯一交易ID列名"
|
||||
|
||||
#. 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 ""
|
||||
6
account_statement_import_txt_xlsx/models/__init__.py
Normal file
6
account_statement_import_txt_xlsx/models/__init__.py
Normal file
@@ -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
|
||||
18
account_statement_import_txt_xlsx/models/account_journal.py
Normal file
18
account_statement_import_txt_xlsx/models/account_journal.py
Normal file
@@ -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
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
4
account_statement_import_txt_xlsx/readme/CONFIGURE.rst
Normal file
4
account_statement_import_txt_xlsx/readme/CONFIGURE.rst
Normal file
@@ -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
|
||||
15
account_statement_import_txt_xlsx/readme/CONTRIBUTORS.rst
Normal file
15
account_statement_import_txt_xlsx/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,15 @@
|
||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
* Sebastien BEAU <sebastien.beau@akretion.com>
|
||||
* Tecnativa (https://www.tecnativa.com)
|
||||
|
||||
* Vicent Cubells <vicent.cubells@tecnativa.com>
|
||||
* Victor M.M. Torres <victor.martin@tecnativa.com>
|
||||
|
||||
* ForgeFlow (https://www.forgeflow.com)
|
||||
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
* Miquel Raïch Regué <miquel.raich@forgeflow.com>
|
||||
|
||||
* `CorporateHub <https://corporatehub.eu/>`__
|
||||
|
||||
* Alexey Pelykh <alexey.pelykh@corphub.eu>
|
||||
2
account_statement_import_txt_xlsx/readme/DESCRIPTION.rst
Normal file
2
account_statement_import_txt_xlsx/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
This module allows you to import any TXT/CSV or XLSX file in Odoo as bank
|
||||
statements.
|
||||
7
account_statement_import_txt_xlsx/readme/HISTORY.rst
Normal file
7
account_statement_import_txt_xlsx/readme/HISTORY.rst
Normal file
@@ -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.
|
||||
4
account_statement_import_txt_xlsx/readme/USAGE.rst
Normal file
4
account_statement_import_txt_xlsx/readme/USAGE.rst
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
BIN
account_statement_import_txt_xlsx/static/description/icon.png
Normal file
BIN
account_statement_import_txt_xlsx/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
472
account_statement_import_txt_xlsx/static/description/index.html
Normal file
472
account_statement_import_txt_xlsx/static/description/index.html
Normal file
@@ -0,0 +1,472 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Bank Statement TXT/CSV/XLSX Import</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="bank-statement-txt-csv-xlsx-import">
|
||||
<h1 class="title">Bank Statement TXT/CSV/XLSX Import</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/14.0/account_statement_import_txt_xlsx"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/bank-statement-import-14-0/bank-statement-import-14-0-account_statement_import_txt_xlsx"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/174/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows you to import any TXT/CSV or XLSX file in Odoo as bank
|
||||
statements.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li>
|
||||
<li><a class="reference internal" href="#usage" id="id3">Usage</a></li>
|
||||
<li><a class="reference internal" href="#changelog" id="id4">Changelog</a><ul>
|
||||
<li><a class="reference internal" href="#id1" id="id5">12.0.2.0.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id6">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id7">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id8">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id9">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id10">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="configuration">
|
||||
<h1><a class="toc-backref" href="#id2">Configuration</a></h1>
|
||||
<p>To create TXT/CSV/XLSX statement sheet columns mapping:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Open <em>Invoicing > Configuration > Accounting > Statement Sheet Mappings</em></li>
|
||||
<li>Create mapping(s) according to your online banking software statement format</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id3">Usage</a></h1>
|
||||
<p>To use this module, you need to:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Get statement in TXT/CSV or XLSX from your online banking software</li>
|
||||
<li>Go to Odoo and and import the statement file, selecting corresponding format</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="changelog">
|
||||
<h1><a class="toc-backref" href="#id4">Changelog</a></h1>
|
||||
<div class="section" id="id1">
|
||||
<h2><a class="toc-backref" href="#id5">12.0.2.0.0</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[BREAKING] New mapping, please review mappings after upgrade.</li>
|
||||
<li>[BREAKING] Different bank accounts have to be used per each currency.</li>
|
||||
<li>[ADD] Support for both Statement and Activity reports.</li>
|
||||
<li>[ADD] Separate fee and currency exchange parsing.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id6">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/bank-statement-import/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/bank-statement-import/issues/new?body=module:%20account_statement_import_txt_xlsx%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id7">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id8">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>ForgeFlow</li>
|
||||
<li>CorporateHub</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id9">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.com">alexis.delattre@akretion.com</a>></li>
|
||||
<li>Sebastien BEAU <<a class="reference external" href="mailto:sebastien.beau@akretion.com">sebastien.beau@akretion.com</a>></li>
|
||||
<li>Tecnativa (<a class="reference external" href="https://www.tecnativa.com">https://www.tecnativa.com</a>)<ul>
|
||||
<li>Vicent Cubells <<a class="reference external" href="mailto:vicent.cubells@tecnativa.com">vicent.cubells@tecnativa.com</a>></li>
|
||||
<li>Victor M.M. Torres <<a class="reference external" href="mailto:victor.martin@tecnativa.com">victor.martin@tecnativa.com</a>></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>ForgeFlow (<a class="reference external" href="https://www.forgeflow.com">https://www.forgeflow.com</a>)<ul>
|
||||
<li>Jordi Ballester Alomar <<a class="reference external" href="mailto:jordi.ballester@forgeflow.com">jordi.ballester@forgeflow.com</a>></li>
|
||||
<li>Miquel Raïch Regué <<a class="reference external" href="mailto:miquel.raich@forgeflow.com">miquel.raich@forgeflow.com</a>></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="reference external" href="https://corporatehub.eu/">CorporateHub</a><ul>
|
||||
<li>Alexey Pelykh <<a class="reference external" href="mailto:alexey.pelykh@corphub.eu">alexey.pelykh@corphub.eu</a>></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id10">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>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.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/alexey-pelykh"><img alt="alexey-pelykh" src="https://github.com/alexey-pelykh.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/bank-statement-import/tree/14.0/account_statement_import_txt_xlsx">OCA/bank-statement-import</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
3
account_statement_import_txt_xlsx/tests/__init__.py
Normal file
3
account_statement_import_txt_xlsx/tests/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import test_account_statement_import_txt_xlsx
|
||||
3
account_statement_import_txt_xlsx/tests/fixtures/balance.csv
vendored
Normal file
3
account_statement_import_txt_xlsx/tests/fixtures/balance.csv
vendored
Normal file
@@ -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",""
|
||||
|
3
account_statement_import_txt_xlsx/tests/fixtures/debit_credit.csv
vendored
Normal file
3
account_statement_import_txt_xlsx/tests/fixtures/debit_credit.csv
vendored
Normal file
@@ -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",""
|
||||
|
1
account_statement_import_txt_xlsx/tests/fixtures/empty_statement_en.csv
vendored
Normal file
1
account_statement_import_txt_xlsx/tests/fixtures/empty_statement_en.csv
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"Date","Label","Currency","Amount","Amount Currency","Partner Name","Bank Account"
|
||||
|
BIN
account_statement_import_txt_xlsx/tests/fixtures/empty_statement_en.xlsx
vendored
Normal file
BIN
account_statement_import_txt_xlsx/tests/fixtures/empty_statement_en.xlsx
vendored
Normal file
Binary file not shown.
3
account_statement_import_txt_xlsx/tests/fixtures/multi_currency.csv
vendored
Normal file
3
account_statement_import_txt_xlsx/tests/fixtures/multi_currency.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"Date","Label","Currency","Amount","Partner Name","Bank Account"
|
||||
"12/15/2018","Your best supplier","USD","-33.50","John Doe","123456789"
|
||||
"12/15/2018","Your payment","EUR","1,525.00","Azure Interior",""
|
||||
|
2
account_statement_import_txt_xlsx/tests/fixtures/original_currency.csv
vendored
Normal file
2
account_statement_import_txt_xlsx/tests/fixtures/original_currency.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"Date","Label","Currency","Amount","Amount Currency","Partner Name","Bank Account"
|
||||
"12/15/2018","Your payment","EUR","1,525.00","-1,000.00","Azure Interior",""
|
||||
|
2
account_statement_import_txt_xlsx/tests/fixtures/original_currency_empty.csv
vendored
Normal file
2
account_statement_import_txt_xlsx/tests/fixtures/original_currency_empty.csv
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
"Date","Label","Currency","Amount","Amount Currency","Partner Name","Bank Account"
|
||||
"12/15/2018","Your payment",,"1,525.00",,"Azure Interior",""
|
||||
|
3
account_statement_import_txt_xlsx/tests/fixtures/sample_statement_en.csv
vendored
Normal file
3
account_statement_import_txt_xlsx/tests/fixtures/sample_statement_en.csv
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"Date","Label","Currency","Amount","Amount Currency","Partner Name","Bank Account"
|
||||
"12/15/2018","Your best supplier on 12/15/2018","USD","-33.50","0.0","John Doe","123456789"
|
||||
"12/15/2018","Your payment on 12/15/2018","EUR","1,525.00","1,000.00","Azure Interior",""
|
||||
|
BIN
account_statement_import_txt_xlsx/tests/fixtures/sample_statement_en.xlsx
vendored
Normal file
BIN
account_statement_import_txt_xlsx/tests/fixtures/sample_statement_en.xlsx
vendored
Normal file
Binary file not shown.
@@ -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)
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="view_account_journal_form_n43" model="ir.ui.view">
|
||||
<field name="model">account.journal</field>
|
||||
<field name="inherit_id" ref="account.view_account_journal_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='advanced_settings']/group" position="inside">
|
||||
<group
|
||||
string="Statement Import Map"
|
||||
attrs="{'invisible': [('type','!=','bank')]}"
|
||||
>
|
||||
<field name="default_sheet_mapping_id" />
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2019 ForgeFlow, S.L.
|
||||
Copyright 2020 CorporateHub (https://corporatehub.eu)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="account_statement_import_form" model="ir.ui.view">
|
||||
<field name="name">account.statement.import</field>
|
||||
<field name="model">account.statement.import</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="account_statement_import.account_statement_import_form"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//ul[@id='statement_format']" position="inside">
|
||||
<li>
|
||||
TXT/CSV/XLSX mapping: <field name="sheet_mapping_id" nolabel="1" />
|
||||
</li>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2019 ForgeFlow, S.L.
|
||||
Copyright 2020 CorporateHub (https://corporatehub.eu)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="account_statement_import_sheet_mapping_form" model="ir.ui.view">
|
||||
<field name="name">account.statement.import.sheet.mapping.form</field>
|
||||
<field name="model">account.statement.import.sheet.mapping</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record id="account_statement_import_sheet_mapping_tree" model="ir.ui.view">
|
||||
<field name="name">account.statement.import.sheet.mapping.tree</field>
|
||||
<field name="model">account.statement.import.sheet.mapping</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<label for="name" class="oe_edit_only" />
|
||||
<h1>
|
||||
<field name="name" />
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="float_thousands_sep" />
|
||||
<field name="float_decimal_sep" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="file_encoding" />
|
||||
<field name="delimiter" />
|
||||
<field name="quotechar" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="timestamp_format" />
|
||||
</group>
|
||||
<group
|
||||
attrs="{'invisible': [('debit_credit_column', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
name="debit_value"
|
||||
attrs="{'required': [('debit_credit_column', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="credit_value"
|
||||
attrs="{'required': [('debit_credit_column', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Columns">
|
||||
<field name="timestamp_column" />
|
||||
<field name="currency_column" />
|
||||
<field name="amount_column" />
|
||||
<field name="balance_column" />
|
||||
<field name="original_currency_column" />
|
||||
<field name="original_amount_column" />
|
||||
<field name="debit_credit_column" />
|
||||
<field name="transaction_id_column" />
|
||||
<field name="description_column" />
|
||||
<field name="notes_column" />
|
||||
<field name="reference_column" />
|
||||
<field name="partner_name_column" />
|
||||
<field name="bank_name_column" />
|
||||
<field name="bank_account_column" />
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record
|
||||
id="action_statement_import_sheet_report_mappings"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<field name="name">Statement Sheet Mappings</field>
|
||||
<field name="res_model">account.statement.import.sheet.mapping</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="menu_statement_import_sheet_mapping"
|
||||
parent="account.account_account_menu"
|
||||
action="action_statement_import_sheet_report_mappings"
|
||||
name="Statement Sheet Mappings"
|
||||
/>
|
||||
</odoo>
|
||||
3
account_statement_import_txt_xlsx/wizards/__init__.py
Normal file
3
account_statement_import_txt_xlsx/wizards/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import account_statement_import_sheet_mapping_wizard
|
||||
@@ -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",
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2019 ForgeFlow, S.L.
|
||||
Copyright 2020 CorporateHub (https://corporatehub.eu)
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="account_statement_import_sheet_mapping_wizard_form" model="ir.ui.view">
|
||||
<field name="name">account.statement.import.sheet.mapping.wizard.form</field>
|
||||
<field name="model">account.statement.import.sheet.mapping.wizard</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="multi_step_wizard.multi_step_wizard_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//footer" position="before">
|
||||
<h2>Select a statement file to import mapping</h2>
|
||||
<group name="start" attrs="{'invisible': [('state', '!=', 'start')]}">
|
||||
<group colspan="2">
|
||||
<field
|
||||
name="attachment_ids"
|
||||
widget="many2many_binary"
|
||||
colspan="2"
|
||||
string="Upload Files"
|
||||
nolabel="1"
|
||||
/>
|
||||
</group>
|
||||
<group string="Options" colspan="2">
|
||||
<field name="file_encoding" />
|
||||
<field name="delimiter" />
|
||||
<field name="quotechar" />
|
||||
</group>
|
||||
</group>
|
||||
<group name="final" attrs="{'invisible': [('state', '!=', 'final')]}">
|
||||
<group colspan="2">
|
||||
<field name="header" invisible="1" />
|
||||
<field
|
||||
name="timestamp_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
attrs="{'required': [('state', '=', 'final')]}"
|
||||
/>
|
||||
<field
|
||||
name="currency_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="amount_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
attrs="{'required': [('state', '=', 'final')]}"
|
||||
/>
|
||||
<field
|
||||
name="balance_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="original_currency_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="original_amount_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="debit_credit_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="transaction_id_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="description_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="notes_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="reference_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="partner_name_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="bank_name_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
<field
|
||||
name="bank_account_column"
|
||||
widget="dynamic_dropdown"
|
||||
values="statement_columns"
|
||||
context="{'header': header}"
|
||||
/>
|
||||
</group>
|
||||
<group
|
||||
string="Debit/Credit column"
|
||||
colspan="2"
|
||||
attrs="{'invisible': [('debit_credit_column', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
name="debit_value"
|
||||
attrs="{'required': [('debit_credit_column', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="credit_value"
|
||||
attrs="{'required': [('debit_credit_column', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='states_buttons']/button" position="before">
|
||||
<button
|
||||
name="import_mapping"
|
||||
string="Import"
|
||||
type="object"
|
||||
class="btn-primary"
|
||||
attrs="{'invisible': [('state', '!=', 'final')]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record
|
||||
id="action_account_statement_import_sheet_mapping_wizard"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<field name="name">Import Mapping</field>
|
||||
<field name="res_model">account.statement.import.sheet.mapping.wizard</field>
|
||||
<field
|
||||
name="binding_model_id"
|
||||
ref="model_account_statement_import_sheet_mapping"
|
||||
/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user