diff --git a/account_due_list_payment/README.rst b/account_due_list_payment/README.rst new file mode 100644 index 00000000000..f7f1d807d6e --- /dev/null +++ b/account_due_list_payment/README.rst @@ -0,0 +1,75 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +======================== +Account Due List Payment +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:72a4db047d2295c909dbad1d9e5062e378282b35fcedad20b6cc9ffc22655757 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Faccount--payment-lightgray.png?logo=github + :target: https://github.com/OCA/account-payment/tree/19.0/account_due_list_payment + :alt: OCA/account-payment +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-payment-19-0/account-payment-19-0-account_due_list_payment + :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-payment&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to make payments directly from the due list view. + +**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 +------- + +* Engenere.one + +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. + +This module is part of the `OCA/account-payment `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_due_list_payment/__init__.py b/account_due_list_payment/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/account_due_list_payment/__manifest__.py b/account_due_list_payment/__manifest__.py new file mode 100644 index 00000000000..6ffc91891ea --- /dev/null +++ b/account_due_list_payment/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2023 Engenere.one +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Account Due List Payment", + "summary": """ + Allows you to make payments directly from the due list view""", + "version": "19.0.1.0.0", + "license": "AGPL-3", + "author": "Engenere.one,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/account-payment", + "depends": [ + "account_due_list", + ], + "data": [ + "views/account_move_line.xml", + ], + "demo": [], +} diff --git a/account_due_list_payment/i18n/account_due_list_payment.pot b/account_due_list_payment/i18n/account_due_list_payment.pot new file mode 100644 index 00000000000..ef0b6108ba1 --- /dev/null +++ b/account_due_list_payment/i18n/account_due_list_payment.pot @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_due_list_payment +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__display_name +msgid "Display Name" +msgstr "" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__id +msgid "ID" +msgstr "" + +#. module: account_due_list_payment +#: model:ir.model,name:account_due_list_payment.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_due_list_payment +#: code:addons/account_due_list_payment/models/account_move_line.py:0 +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_form_view +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_tree_view +#, python-format +msgid "Register Payment" +msgstr "" diff --git a/account_due_list_payment/i18n/es.po b/account_due_list_payment/i18n/es.po new file mode 100644 index 00000000000..f907b7d5fed --- /dev/null +++ b/account_due_list_payment/i18n/es.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_due_list_payment +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-12-18 19:33+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_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: account_due_list_payment +#: model:ir.model,name:account_due_list_payment.model_account_move_line +msgid "Journal Item" +msgstr "Artículo del Diario" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: account_due_list_payment +#: code:addons/account_due_list_payment/models/account_move_line.py:0 +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_form_view +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_tree_view +#, python-format +msgid "Register Payment" +msgstr "Registrar Pago" diff --git a/account_due_list_payment/i18n/it.po b/account_due_list_payment/i18n/it.po new file mode 100644 index 00000000000..67cc932424a --- /dev/null +++ b/account_due_list_payment/i18n/it.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_due_list_payment +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-02-23 14:34+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 4.17\n" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line__id +msgid "ID" +msgstr "ID" + +#. module: account_due_list_payment +#: model:ir.model,name:account_due_list_payment.model_account_move_line +msgid "Journal Item" +msgstr "Movimento contabile" + +#. module: account_due_list_payment +#: model:ir.model.fields,field_description:account_due_list_payment.field_account_move_line____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: account_due_list_payment +#: code:addons/account_due_list_payment/models/account_move_line.py:0 +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_form_view +#: model_terms:ir.ui.view,arch_db:account_due_list_payment.account_move_line_tree_view +#, python-format +msgid "Register Payment" +msgstr "Registra pagamento" diff --git a/account_due_list_payment/pyproject.toml b/account_due_list_payment/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/account_due_list_payment/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/account_due_list_payment/readme/DESCRIPTION.md b/account_due_list_payment/readme/DESCRIPTION.md new file mode 100644 index 00000000000..554af9de678 --- /dev/null +++ b/account_due_list_payment/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows you to make payments directly from the due list view. diff --git a/account_due_list_payment/static/description/icon.png b/account_due_list_payment/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/account_due_list_payment/static/description/icon.png differ diff --git a/account_due_list_payment/static/description/index.html b/account_due_list_payment/static/description/index.html new file mode 100644 index 00000000000..62b1e834511 --- /dev/null +++ b/account_due_list_payment/static/description/index.html @@ -0,0 +1,422 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Account Due List Payment

+ +

Beta License: AGPL-3 OCA/account-payment Translate me on Weblate Try me on Runboat

+

This module allows you to make payments directly from the due list view.

+

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

+
    +
  • Engenere.one
  • +
+
+
+

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.

+

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

+

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

+
+
+
+
+ + diff --git a/account_due_list_payment/tests/__init__.py b/account_due_list_payment/tests/__init__.py new file mode 100644 index 00000000000..fbe09a4f8a2 --- /dev/null +++ b/account_due_list_payment/tests/__init__.py @@ -0,0 +1 @@ +from . import test_action_register_payment diff --git a/account_due_list_payment/tests/test_action_register_payment.py b/account_due_list_payment/tests/test_action_register_payment.py new file mode 100644 index 00000000000..1ddc162b633 --- /dev/null +++ b/account_due_list_payment/tests/test_action_register_payment.py @@ -0,0 +1,26 @@ +# Copyright 2023 Engenere.one +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo.tests import common + + +class TestAccountMoveLine(common.TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + + cls.account_move_line_model = cls.env["account.move.line"] + cls.account_payment_register_model = cls.env["account.payment.register"] + + cls.move_line = cls.account_move_line_model.search( + [ + ("account_id.account_type", "=", "asset_receivable"), + ("reconciled", "=", False), + ], + limit=1, + ) + + def test_action_register_payment(self): + result = self.move_line.action_register_payment() + self.assertEqual(result["res_model"], "account.payment.register") + self.assertEqual(result["context"]["active_ids"], self.move_line.ids) diff --git a/account_due_list_payment/views/account_move_line.xml b/account_due_list_payment/views/account_move_line.xml new file mode 100644 index 00000000000..6fc67840e75 --- /dev/null +++ b/account_due_list_payment/views/account_move_line.xml @@ -0,0 +1,44 @@ + + + + + account.move.line.form + account.move.line + + + +
+
+
+
+
+ + + account.move.line.tree + account.move.line + + + +
+
+
+
+
+