diff --git a/l10n_ro_edi_check/README.rst b/l10n_ro_edi_check/README.rst index 0caff4d1..6b4f8947 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:3429869a9ad1356c420acbe14d3c47a7ef344d7e41aaabd2b1d70f56a7df9d4c + !! source digest: sha256:c34e53f7b6ba5f0bccb91b1c3aeff5f86b2bd7017fd061b9c2a704b3d53f3fb8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 9dbebbfe..73f710b5 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.2", + "version": "14.0.0.1.3", "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 5dda7849..2dd3ff8c 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 and invoice.type == "out_invoice": + if get_all_banks and invoice.move_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 75317387..14aa29bf 100644 --- a/l10n_ro_edi_check/static/description/index.html +++ b/l10n_ro_edi_check/static/description/index.html @@ -368,7 +368,7 @@