From 3ec0c09aefbf506a39ebc518ee0e75b6b13287a6 Mon Sep 17 00:00:00 2001 From: danila12 Date: Wed, 4 Sep 2024 20:45:46 +0300 Subject: [PATCH] fix conturi multiple doar in out_invoice --- l10n_ro_edi_check/README.rst | 2 +- l10n_ro_edi_check/__manifest__.py | 2 +- l10n_ro_edi_check/models/account_edi_format.py | 2 +- l10n_ro_edi_check/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/l10n_ro_edi_check/README.rst b/l10n_ro_edi_check/README.rst index b02500e9..0caff4d1 100644 --- a/l10n_ro_edi_check/README.rst +++ b/l10n_ro_edi_check/README.rst @@ -7,7 +7,7 @@ Romania - EDI data check !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:b2547500a5868eb84e712579d3a34e9002e173bbc479858fe28aa11ea96401cb + !! source digest: sha256:3429869a9ad1356c420acbe14d3c47a7ef344d7e41aaabd2b1d70f56a7df9d4c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_ro_edi_check/__manifest__.py b/l10n_ro_edi_check/__manifest__.py index dc09d3b0..9dbebbfe 100644 --- a/l10n_ro_edi_check/__manifest__.py +++ b/l10n_ro_edi_check/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Romania - EDI data check", "license": "AGPL-3", - "version": "14.0.0.1.1", + "version": "14.0.0.1.2", "author": "Terrabit," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-romania", "category": "Tools", diff --git a/l10n_ro_edi_check/models/account_edi_format.py b/l10n_ro_edi_check/models/account_edi_format.py index b67a7ebc..5dda7849 100644 --- a/l10n_ro_edi_check/models/account_edi_format.py +++ b/l10n_ro_edi_check/models/account_edi_format.py @@ -41,7 +41,7 @@ def _get_invoice_payment_means_vals_list(self, invoice): get_param = self.env["ir.config_parameter"].sudo().get_param get_all_banks = get_param("l10n_ro_edi_check.get_all_banks", "False") get_all_banks = safe_eval(get_all_banks) - if get_all_banks: + if get_all_banks and invoice.type == "out_invoice": domain = [("l10n_ro_print_report", "=", True), ("currency_id", "=", invoice.company_id.currency_id.id)] banks = self.env["res.partner.bank"].search(domain) if banks: diff --git a/l10n_ro_edi_check/static/description/index.html b/l10n_ro_edi_check/static/description/index.html index c9b88c77..75317387 100644 --- a/l10n_ro_edi_check/static/description/index.html +++ b/l10n_ro_edi_check/static/description/index.html @@ -368,7 +368,7 @@

Romania - EDI data check

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:b2547500a5868eb84e712579d3a34e9002e173bbc479858fe28aa11ea96401cb +!! source digest: sha256:3429869a9ad1356c420acbe14d3c47a7ef344d7e41aaabd2b1d70f56a7df9d4c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 dhongu/l10n-romania