diff --git a/account_statement_base/README.rst b/account_statement_base/README.rst new file mode 100644 index 000000000..eee9cab52 --- /dev/null +++ b/account_statement_base/README.rst @@ -0,0 +1,107 @@ +=================== +Bank Statement Base +=================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:baed690e1bab1fc9aea5f5fbb74b80f3a00ed79c64bd911ce8b59571b8b27ad4 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png + :target: https://odoo-community.org/page/development-status + :alt: Mature +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github + :target: https://github.com/OCA/account-reconcile/tree/18.0/account_statement_base + :alt: OCA/account-reconcile +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-reconcile-18-0/account-reconcile-18-0-account_statement_base + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a technical module that adds the views of the **Bank Statement +Lines** (since Odoo 16.0, these views are not part of the *account* +module any more). + +**Table of contents** + +.. contents:: + :local: + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Akretion + +Contributors +------------ + +- `Akretion `__: + + - Alexis de Lattre + +- `Tecnativa `__: + + - Carlos Dauden + - Sergio Teruel + +- `ForgeFlow `__: + + - Jordi Ballester + +- `Trobz `__: + + - Do Anh Duy + +Other credits +------------- + +The migration of this module from 17.0 to 18.0 was financially supported +by Camptocamp. + +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-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/account-reconcile `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_statement_base/__init__.py b/account_statement_base/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/account_statement_base/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_statement_base/__manifest__.py b/account_statement_base/__manifest__.py new file mode 100644 index 000000000..c1a728eac --- /dev/null +++ b/account_statement_base/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2023 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0). + +{ + "name": "Bank Statement Base", + "version": "18.0.1.0.0", + "category": "Accounting", + "license": "LGPL-3", + "summary": "Base module for Bank Statements", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "development_status": "Mature", + "website": "https://github.com/OCA/account-reconcile", + "depends": ["account"], + "data": [ + "views/account_bank_statement_line.xml", + "views/account_bank_statement.xml", # Keep order + ], + "installable": True, +} diff --git a/account_statement_base/i18n/account_statement_base.pot b/account_statement_base/i18n/account_statement_base.pot new file mode 100644 index 000000000..bf92455c5 --- /dev/null +++ b/account_statement_base/i18n/account_statement_base.pot @@ -0,0 +1,119 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/i18n/es.po b/account_statement_base/i18n/es.po new file mode 100644 index 000000000..fe99effc1 --- /dev/null +++ b/account_statement_base/i18n/es.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-07-29 12:10+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\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.17\n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "Líneas del Extracto Bancario" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "Fecha" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "Dario" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "Etiqueta, referencia o notas" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "No reconciliado" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "Notas" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "Socio" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "Reconciliado" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "Revertir la reconciliación" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "Información técnica" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "Para revisar" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "Tipo de transacción" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/i18n/fr.po b/account_statement_base/i18n/fr.po new file mode 100644 index 000000000..a4c8ab7dc --- /dev/null +++ b/account_statement_base/i18n/fr.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-08-16 17:10+0000\n" +"Last-Translator: Rémi \n" +"Language-Team: none\n" +"Language: fr\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.17\n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "Lignes de relevé bancaire" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "Date" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "Journal" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "Libellé, Réf ou Notes" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "Non lettré" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "Notes" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "Partenaire" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "Lettré" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "Dé-lettrer" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "Informations techniques" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "À vérifier" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "Type de transaction" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/i18n/it.po b/account_statement_base/i18n/it.po new file mode 100644 index 000000000..0265bd089 --- /dev/null +++ b/account_statement_base/i18n/it.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-10-04 08:12+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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 5.6.2\n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "Movimenti contabili" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "Estratto conto bancario" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "Riga estratto conto" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "Righe estratto conto bancario" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "Data" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "Registro" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "Movimenti contabili" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "Etichetta, riferimento o note" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "Non riconciliata" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "Note" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "Apri registrazione contabile" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "Apri righe estratto conto" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "Partner" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "Riconciliata" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "Ripristina riconciliazione" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "Informazioni tecniche" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "Da controllare" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "Tipo transazione" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "Transazioni" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "es. BNK/2021/0001" diff --git a/account_statement_base/i18n/pt_BR.po b/account_statement_base/i18n/pt_BR.po new file mode 100644 index 000000000..6ec63b6a3 --- /dev/null +++ b/account_statement_base/i18n/pt_BR.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-22 15:09+0000\n" +"Last-Translator: Adriano Prado \n" +"Language-Team: none\n" +"Language: pt_BR\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.17\n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "Linhas Extrato Bancário" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "Data" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "Diário" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "Rótulo, Ref ou Notas" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "Não Reconciliado" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "Notas" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "Parceiro" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "Reconciliado" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "Reverter Reconciliação" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "Informação Técnica" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "Para Verificar" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "Tipo de Transação" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/i18n/zh.po b/account_statement_base/i18n/zh.po new file mode 100644 index 000000000..bb6584102 --- /dev/null +++ b/account_statement_base/i18n/zh.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh\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" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/i18n/zh_CN.po b/account_statement_base/i18n/zh_CN.po new file mode 100644 index 000000000..a75d54233 --- /dev/null +++ b/account_statement_base/i18n/zh_CN.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_statement_base +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-06-12 02:41+0000\n" +"Last-Translator: xtanuiha \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 4.17\n" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Bank Statement" +msgstr "" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_bank_statement_line +msgid "Bank Statement Line" +msgstr "" + +#. module: account_statement_base +#: model:ir.actions.act_window,name:account_statement_base.account_bank_statement_line_action +msgid "Bank Statement Lines" +msgstr "银行对账单明细" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Date" +msgstr "日期" + +#. module: account_statement_base +#: model:ir.model,name:account_statement_base.model_account_journal +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Journal" +msgstr "日记账" + +#. module: account_statement_base +#. odoo-python +#: code:addons/account_statement_base/models/account_bank_statement.py:0 +#, python-format +msgid "Journal Items" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Label, Ref or Notes" +msgstr "摘要,参考号或备注" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Not Reconciled" +msgstr "未对账" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Notes" +msgstr "备注" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Open Journal Entry" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_tree +msgid "Open Statement Lines" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Partner" +msgstr "业务伙伴" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Reconciled" +msgstr "已对账" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_tree +msgid "Revert reconciliation" +msgstr "撤销对账" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_form +msgid "Technical Information" +msgstr "技术信息" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "To check" +msgstr "待复核" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.account_bank_statement_line_search +msgid "Transaction Type" +msgstr "交易类型" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "Transactions" +msgstr "" + +#. module: account_statement_base +#: model_terms:ir.ui.view,arch_db:account_statement_base.view_bank_statement_form +msgid "e.g. BNK/2021/0001" +msgstr "" diff --git a/account_statement_base/models/__init__.py b/account_statement_base/models/__init__.py new file mode 100644 index 000000000..4a0bb3160 --- /dev/null +++ b/account_statement_base/models/__init__.py @@ -0,0 +1,3 @@ +from . import account_journal_dashboard +from . import account_bank_statement_line +from . import account_bank_statement diff --git a/account_statement_base/models/account_bank_statement.py b/account_statement_base/models/account_bank_statement.py new file mode 100644 index 000000000..6a0ae1844 --- /dev/null +++ b/account_statement_base/models/account_bank_statement.py @@ -0,0 +1,63 @@ +from odoo import models + + +class AccountBankStatement(models.Model): + _inherit = "account.bank.statement" + + # TODO: Delete if merged https://github.com/odoo/odoo/pull/182497 + def _compute_date_index(self): + """The super() method does not take into account lines that do not have + internal_index set yet, and causes sorted() to fail, we need to re-define + the method in these cases to avoid the error. + """ + _self = self + for stmt in self: + if any(not line.internal_index for line in stmt.line_ids): + _self -= stmt + sorted_lines = stmt.line_ids.filtered("internal_index").sorted( + "internal_index" + ) + stmt.first_line_index = sorted_lines[:1].internal_index + stmt.date = sorted_lines.filtered(lambda line: line.state == "posted")[ + -1: + ].date + return super(AccountBankStatement, _self)._compute_date_index() + + def action_open_statement_lines(self): + self.ensure_one() + if not self: + return {} + action = self.env["ir.actions.act_window"]._for_xml_id( + "account_statement_base.account_bank_statement_line_action" + ) + action.update( + { + "domain": [("statement_id", "=", self.id)], + "context": { + "default_statement_id": self.id, + "default_journal_id": self._context.get("active_id") + if self._context.get("active_model") == "account.journal" + else None, + "account_bank_statement_line_main_view": True, + }, + } + ) + + return action + + def open_entries(self): + self.ensure_one() + return { + "name": self.env._("Journal Items"), + "view_mode": "list,form", + "res_model": "account.move.line", + "view_id": False, + "type": "ir.actions.act_window", + "context": {"search_default_group_by_move": 1, "expand": 1}, + "search_view_id": self.env.ref("account.view_account_move_line_filter").id, + "domain": [ + "&", + ("parent_state", "=", "posted"), + ("statement_id", "=", self.id), + ], + } diff --git a/account_statement_base/models/account_bank_statement_line.py b/account_statement_base/models/account_bank_statement_line.py new file mode 100644 index 000000000..4199a73fd --- /dev/null +++ b/account_statement_base/models/account_bank_statement_line.py @@ -0,0 +1,27 @@ +# Copyright 2024 ForgeFlow +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models + + +class AccountBankStatementLine(models.Model): + _inherit = "account.bank.statement.line" + + # TODO: Delete if merged https://github.com/odoo/odoo/pull/182497 + def _compute_running_balance(self): + # We need to set value to all records because super() does not do it using sql. + for item in self: + item.running_balance = item.running_balance + return super()._compute_running_balance() + + def action_open_journal_entry(self): + self.ensure_one() + if not self: + return {} + result = self.env["ir.actions.act_window"]._for_xml_id( + "account.action_move_line_form" + ) + res = self.env.ref("account.view_move_form", False) + result["views"] = [(res and res.id or False, "form")] + result["res_id"] = self.move_id.id + return result diff --git a/account_statement_base/models/account_journal_dashboard.py b/account_statement_base/models/account_journal_dashboard.py new file mode 100644 index 000000000..d66610901 --- /dev/null +++ b/account_statement_base/models/account_journal_dashboard.py @@ -0,0 +1,16 @@ +from odoo import models + + +class AccountJournal(models.Model): + _inherit = "account.journal" + + def create_cash_statement(self): + # Totally override this action for avoiding the standard + # message saying that you need to install the enterprise + # module. We do the equivalent thing instead. + self.ensure_one() + action = self.env["ir.actions.actions"]._for_xml_id( + "account_statement_base.account_bank_statement_line_action" + ) + action["context"] = {"search_default_journal_id": self.id} + return action diff --git a/account_statement_base/pyproject.toml b/account_statement_base/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/account_statement_base/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_statement_base/readme/CONTRIBUTORS.md b/account_statement_base/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..a5b4dbb3d --- /dev/null +++ b/account_statement_base/readme/CONTRIBUTORS.md @@ -0,0 +1,9 @@ + - [Akretion](https://www.akretion.com): + - Alexis de Lattre \<\> + - [Tecnativa](https://www.tecnativa.com): + - Carlos Dauden + - Sergio Teruel + - [ForgeFlow](https://www.forgeflow.com): + - Jordi Ballester + - [Trobz](https://www.trobz.com): + - Do Anh Duy \<\> diff --git a/account_statement_base/readme/CREDITS.md b/account_statement_base/readme/CREDITS.md new file mode 100644 index 000000000..83b3ec91f --- /dev/null +++ b/account_statement_base/readme/CREDITS.md @@ -0,0 +1 @@ +The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp. diff --git a/account_statement_base/readme/DESCRIPTION.md b/account_statement_base/readme/DESCRIPTION.md new file mode 100644 index 000000000..c0a4c63d0 --- /dev/null +++ b/account_statement_base/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This is a technical module that adds the views of the **Bank Statement +Lines** (since Odoo 16.0, these views are not part of the *account* +module any more). diff --git a/account_statement_base/static/description/icon.png b/account_statement_base/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/account_statement_base/static/description/icon.png differ diff --git a/account_statement_base/static/description/index.html b/account_statement_base/static/description/index.html new file mode 100644 index 000000000..24690c376 --- /dev/null +++ b/account_statement_base/static/description/index.html @@ -0,0 +1,449 @@ + + + + + +Bank Statement Base + + + +
+

Bank Statement Base

+ + +

Mature License: LGPL-3 OCA/account-reconcile Translate me on Weblate Try me on Runboat

+

This is a technical module that adds the views of the Bank Statement +Lines (since Odoo 16.0, these views are not part of the account +module any more).

+

Table of contents

+ +
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The migration of this module from 17.0 to 18.0 was financially supported +by Camptocamp.

+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/account-reconcile project on GitHub.

+

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

+
+
+
+ + diff --git a/account_statement_base/tests/__init__.py b/account_statement_base/tests/__init__.py new file mode 100644 index 000000000..7543554db --- /dev/null +++ b/account_statement_base/tests/__init__.py @@ -0,0 +1 @@ +from . import test_account_statement_base diff --git a/account_statement_base/tests/test_account_statement_base.py b/account_statement_base/tests/test_account_statement_base.py new file mode 100644 index 000000000..891915468 --- /dev/null +++ b/account_statement_base/tests/test_account_statement_base.py @@ -0,0 +1,91 @@ +from odoo import Command +from odoo.tests import tagged + +from odoo.addons.account.tests.common import AccountTestInvoicingCommon + + +@tagged("post_install", "-at_install") +class TestOpenEntries(AccountTestInvoicingCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.company = cls.company_data["company"] + cls.acc_bank_stmt_model = cls.env["account.bank.statement"] + cls.account_move_model = cls.env["account.move"] + cls.account_move_line_model = cls.env["account.move.line"] + cls.current_assets_account = cls.env["account.account"].search( + [ + ("account_type", "=", "asset_current"), + ("company_ids", "in", cls.company.ids), + ], + limit=1, + ) + cls.current_assets_account.reconcile = True + cls.non_current_assets_account = cls.env["account.account"].search( + [ + ("account_type", "=", "asset_non_current"), + ("company_ids", "in", cls.company.ids), + ], + limit=1, + ) + cls.non_current_assets_account.reconcile = True + + def test_01_test_open_entries(self): + move = self.account_move_model.create( + { + "line_ids": [ + Command.create( + { + "account_id": self.current_assets_account.id, + "name": "DEMO", + "credit": 100, + } + ), + Command.create( + { + "account_id": self.non_current_assets_account.id, + "name": "DEMO", + "debit": 100, + } + ), + ] + } + ) + move.action_post() + statement = self.acc_bank_stmt_model.create( + { + "name": "Test Bank Statement", + "line_ids": [ + Command.create( + { + "date": "2024-01-01", + "amount": 100.0, + "payment_ref": move.name, + "line_ids": [Command.set([move.line_ids[0].id])], + } + ), + Command.create( + { + "date": "2024-01-01", + "amount": 100.0, + "payment_ref": move.name, + "line_ids": [Command.set([move.line_ids[1].id])], + } + ), + ], + } + ) + domain = [ + "&", + ("parent_state", "=", "posted"), + ("statement_id", "=", statement.id), + ] + result = statement.open_entries() + move_lines = self.env[result["res_model"]].search(result["domain"]) + self.assertTrue(result) + self.assertEqual(result.get("res_model"), "account.move.line") + self.assertEqual(result.get("context").get("search_default_group_by_move"), 1) + self.assertEqual(result.get("context").get("expand"), 1) + self.assertEqual(result.get("domain"), domain) + self.assertIn(statement.line_ids.line_ids[0], move_lines) + self.assertIn(statement.line_ids.line_ids[1], move_lines) diff --git a/account_statement_base/views/account_bank_statement.xml b/account_statement_base/views/account_bank_statement.xml new file mode 100644 index 000000000..5fe93c9bc --- /dev/null +++ b/account_statement_base/views/account_bank_statement.xml @@ -0,0 +1,117 @@ + + + + + account.bank.statement.form + account.bank.statement + 1 + +
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + +
+ + + + + + + + account.bank.statement + list,form,pivot,graph + + + list,form,pivot,graph + + + + account.bank.statement.list + account.bank.statement + + + + true + + +