diff --git a/l10n_es_account_statement_import_n43_company/README.rst b/l10n_es_account_statement_import_n43_company/README.rst new file mode 100644 index 000000000..5b48b4b5e --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/README.rst @@ -0,0 +1,63 @@ +================================= +Bank statement import N43 company +================================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4058f1109fb8b4716bce38f878b2e45bb1220acbbb502d5352f442612fb5b46e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/l10n_es_account_statement_import_n43_company + :alt: NuoBiT/odoo-addons + +|badge1| |badge2| |badge3| + +This module only allows to get partners from the current company + +**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 +------- + +* NuoBiT Solutions SL + +Contributors +------------ + +- `NuoBiT `__: + + - Eric Antones eantones@nuobit.com + - Deniz Gallo dgallo@nuobit.com + +Maintainers +----------- + +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/l10n_es_account_statement_import_n43_company/__init__.py b/l10n_es_account_statement_import_n43_company/__init__.py new file mode 100644 index 000000000..5cb1c4914 --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/__init__.py @@ -0,0 +1 @@ +from . import wizards diff --git a/l10n_es_account_statement_import_n43_company/__manifest__.py b/l10n_es_account_statement_import_n43_company/__manifest__.py new file mode 100644 index 000000000..a84d1b8ec --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright NuoBiT Solutions - Eric Antones +# Copyright 2025 NuoBiT Solutions - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + "name": "Bank statement import N43 company", + "summary": "This module only allows to get partners from the current company", + "version": "18.0.1.0.0", + "author": "NuoBiT Solutions SL", + "website": "https://github.com/NuoBiT/odoo-addons", + "category": "Accounting & Finance", + "license": "AGPL-3", + "depends": [ + "l10n_es_account_statement_import_n43", + ], +} diff --git a/l10n_es_account_statement_import_n43_company/pyproject.toml b/l10n_es_account_statement_import_n43_company/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_es_account_statement_import_n43_company/readme/CONTRIBUTORS.md b/l10n_es_account_statement_import_n43_company/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..909507cba --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [NuoBiT](https://www.nuobit.com): + - Eric Antones + - Deniz Gallo diff --git a/l10n_es_account_statement_import_n43_company/readme/DESCRIPTION.md b/l10n_es_account_statement_import_n43_company/readme/DESCRIPTION.md new file mode 100644 index 000000000..6647dc8cc --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module only allows to get partners from the current company diff --git a/l10n_es_account_statement_import_n43_company/static/description/icon.png b/l10n_es_account_statement_import_n43_company/static/description/icon.png new file mode 100644 index 000000000..1cd641e79 Binary files /dev/null and b/l10n_es_account_statement_import_n43_company/static/description/icon.png differ diff --git a/l10n_es_account_statement_import_n43_company/static/description/index.html b/l10n_es_account_statement_import_n43_company/static/description/index.html new file mode 100644 index 000000000..9564880af --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/static/description/index.html @@ -0,0 +1,420 @@ + + + + + +Bank statement import N43 company + + + +
+

Bank statement import N43 company

+ + +

Beta License: AGPL-3 NuoBiT/odoo-addons

+

This module only allows to get partners from the current company

+

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

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/l10n_es_account_statement_import_n43_company/wizards/__init__.py b/l10n_es_account_statement_import_n43_company/wizards/__init__.py new file mode 100644 index 000000000..4c986fb4e --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/wizards/__init__.py @@ -0,0 +1 @@ +from . import account_statement_import_n43 diff --git a/l10n_es_account_statement_import_n43_company/wizards/account_statement_import_n43.py b/l10n_es_account_statement_import_n43_company/wizards/account_statement_import_n43.py new file mode 100644 index 000000000..454ef4b58 --- /dev/null +++ b/l10n_es_account_statement_import_n43_company/wizards/account_statement_import_n43.py @@ -0,0 +1,15 @@ +# Copyright NuoBiT Solutions - Eric Antones +# Copyright 2025 NuoBiT Solutions - Deniz Gallo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import models + + +class AccountStatementImport(models.TransientModel): + _inherit = "account.statement.import" + + def _get_n43_partner(self, line, journal): + partner = super()._get_n43_partner(line=line, journal=journal) + if partner.company_id and partner.company_id != self.env.company: + partner = self.env["res.partner"] + return partner