From e06be3e37bd3ea381a5133f7adf06a0724533bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 16 Aug 2023 16:43:43 +0200 Subject: [PATCH] [FIX] account_statement_import_txt_xlsx: Make tests resilient - Depending on the installed set of modules, the company currency may be USD or EUR. If the second case, these tests will fail, so we make sure that the company currency is USD for our tests, doing the change by SQL, as there's a Python constraint that prevents it. Not needed in v17 due to: odoo/odoo#107113. account_statement_import_txt_xlsx 15.0.2.0.2 [UPD] Update account_statement_import_txt_xlsx.pot account_statement_import_txt_xlsx 15.0.2.0.3 [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: bank-statement-import-15.0/bank-statement-import-15.0-account_statement_import_txt_xlsx Translate-URL: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-0-account_statement_import_txt_xlsx/ --- .../README.rst | 15 +++--- .../__manifest__.py | 2 +- .../account_statement_import_txt_xlsx.pot | 6 +++ .../i18n/es.po | 20 ++++--- .../i18n/es_AR.po | 6 +++ .../i18n/it.po | 6 +++ .../i18n/nl.po | 6 +++ .../i18n/pt.po | 6 +++ .../i18n/zh_CN.po | 6 +++ .../static/description/index.html | 54 ++++++++++--------- .../test_account_statement_import_txt_xlsx.py | 8 +++ 11 files changed, 96 insertions(+), 39 deletions(-) diff --git a/account_statement_import_sheet_file/README.rst b/account_statement_import_sheet_file/README.rst index fe5319e16..fba8871c4 100644 --- a/account_statement_import_sheet_file/README.rst +++ b/account_statement_import_sheet_file/README.rst @@ -2,10 +2,13 @@ Bank Statement TXT/CSV/XLSX Import ================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:5e6a0e010b851fe8f9d5fe6bf919b19476e415a8f4d3736643ef92e3b3acd402 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Bank Statement TXT/CSV/XLSX Import .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/bank-statement-import-15-0/bank-statement-import-15-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/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&target_branch=15.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module allows you to import any TXT/CSV or XLSX file in Odoo as bank statements. @@ -65,7 +68,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/account_statement_import_sheet_file/__manifest__.py b/account_statement_import_sheet_file/__manifest__.py index d144867b0..db6efee5b 100644 --- a/account_statement_import_sheet_file/__manifest__.py +++ b/account_statement_import_sheet_file/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Bank Statement TXT/CSV/XLSX Import", "summary": "Import TXT/CSV or XLSX files as Bank Statements in Odoo", - "version": "15.0.2.0.1", + "version": "15.0.2.0.3", "category": "Accounting", "website": "https://github.com/OCA/bank-statement-import", "author": "ForgeFlow, CorporateHub, Odoo Community Association (OCA)", diff --git a/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot b/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot index 93341ddae..a16e45816 100644 --- a/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot +++ b/account_statement_import_sheet_file/i18n/account_statement_import_txt_xlsx.pot @@ -57,6 +57,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/i18n/es.po b/account_statement_import_sheet_file/i18n/es.po index f7eee8255..5a6727e73 100644 --- a/account_statement_import_sheet_file/i18n/es.po +++ b/account_statement_import_sheet_file/i18n/es.po @@ -25,8 +25,10 @@ msgstr "%(code)s: %(filename)s" #. module: account_statement_import_txt_xlsx #: model_terms:ir.ui.view,arch_db:account_statement_import_txt_xlsx.account_statement_import_sheet_mapping_tree msgid "" -" Add the column names or column number (when the file has no header).\n" -" You can concatenate multiple columns in the file into the same field, indicating the\n" +" Add the column names or column number " +"(when the file has no header).\n" +" You can concatenate multiple columns in the " +"file into the same field, indicating the\n" " column names or numbers separated by comma." msgstr "" " Agregue los nombres de columna o el " @@ -68,6 +70,12 @@ msgstr "Columna de importe" msgid "Amount of transaction in journal's currency" msgstr "Monto de la transacción en la moneda del diario" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column @@ -302,8 +310,8 @@ msgstr "" #: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_currency_column #: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_currency_column msgid "" -"In case statement provides original currency for transactions with automatic" -" currency conversion, column to get original currency of transaction from" +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original currency of transaction from" msgstr "" "En caso de que el extracto proporcione la moneda original para transacciones " "con conversión automática de moneda, columna para obtener la moneda original " @@ -313,8 +321,8 @@ msgstr "" #: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__original_amount_column #: model:ir.model.fields,help:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__original_amount_column msgid "" -"In case statement provides original currency for transactions with automatic" -" currency conversion, column to get original transaction amount in original " +"In case statement provides original currency for transactions with automatic " +"currency conversion, column to get original transaction amount in original " "transaction currency from" msgstr "" "En caso de que el extracto proporcione la moneda original para transacciones " diff --git a/account_statement_import_sheet_file/i18n/es_AR.po b/account_statement_import_sheet_file/i18n/es_AR.po index f71d8f956..785a8f4ef 100644 --- a/account_statement_import_sheet_file/i18n/es_AR.po +++ b/account_statement_import_sheet_file/i18n/es_AR.po @@ -62,6 +62,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "Monto de la transacción en la moneda del diario" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/i18n/it.po b/account_statement_import_sheet_file/i18n/it.po index 1d4198dda..bc6631c68 100644 --- a/account_statement_import_sheet_file/i18n/it.po +++ b/account_statement_import_sheet_file/i18n/it.po @@ -62,6 +62,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "Importo dell'operazione nella valuta del registro" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/i18n/nl.po b/account_statement_import_sheet_file/i18n/nl.po index 615d3d385..a2b275598 100644 --- a/account_statement_import_sheet_file/i18n/nl.po +++ b/account_statement_import_sheet_file/i18n/nl.po @@ -62,6 +62,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/i18n/pt.po b/account_statement_import_sheet_file/i18n/pt.po index 29c4aaec0..0dd6d20d6 100644 --- a/account_statement_import_sheet_file/i18n/pt.po +++ b/account_statement_import_sheet_file/i18n/pt.po @@ -60,6 +60,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/i18n/zh_CN.po b/account_statement_import_sheet_file/i18n/zh_CN.po index dd8b21ad0..ba79e24ce 100644 --- a/account_statement_import_sheet_file/i18n/zh_CN.po +++ b/account_statement_import_sheet_file/i18n/zh_CN.po @@ -62,6 +62,12 @@ msgstr "" msgid "Amount of transaction in journal's currency" msgstr "原币的交易金额" +#. module: account_statement_import_txt_xlsx +#: code:addons/account_statement_import_txt_xlsx/models/account_statement_import.py:0 +#, python-format +msgid "Bad file/mapping: " +msgstr "" + #. module: account_statement_import_txt_xlsx #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping__balance_column #: model:ir.model.fields,field_description:account_statement_import_txt_xlsx.field_account_statement_import_sheet_mapping_wizard__balance_column diff --git a/account_statement_import_sheet_file/static/description/index.html b/account_statement_import_sheet_file/static/description/index.html index aa8381c40..874d6a359 100644 --- a/account_statement_import_sheet_file/static/description/index.html +++ b/account_statement_import_sheet_file/static/description/index.html @@ -1,20 +1,20 @@ - + - + Bank Statement TXT/CSV/XLSX Import