diff --git a/account_statement_import_online/README.rst b/account_statement_import_online/README.rst index 7c6c2a36..58484c32 100644 --- a/account_statement_import_online/README.rst +++ b/account_statement_import_online/README.rst @@ -7,7 +7,7 @@ Online Bank Statements !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:c2c6fa7e76620768efb21c4cde6d59bf79f3822a9c7fa04ba7316b7884342757 + !! source digest: sha256:4e776391899046c094042c9d36dca977e7ac73c791ddc904eaf5ad65c33f2e32 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/account_statement_import_online/__manifest__.py b/account_statement_import_online/__manifest__.py index f08d36c8..0172889f 100644 --- a/account_statement_import_online/__manifest__.py +++ b/account_statement_import_online/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Online Bank Statements", - "version": "16.0.1.2.0", + "version": "16.0.1.2.1", "author": "CorporateHub, Odoo Community Association (OCA)", "maintainers": ["alexey-pelykh"], "website": "https://github.com/OCA/bank-statement-import", diff --git a/account_statement_import_online/models/account_journal.py b/account_statement_import_online/models/account_journal.py index d8dc2481..b3c2647d 100644 --- a/account_statement_import_online/models/account_journal.py +++ b/account_statement_import_online/models/account_journal.py @@ -77,7 +77,8 @@ class AccountJournal(models.Model): def write(self, vals): self._update_vals(vals) res = super().write(vals) - self._update_providers() + if vals.get("online_bank_statement_provider"): + self._update_providers() return res def _update_vals(self, vals): diff --git a/account_statement_import_online/static/description/index.html b/account_statement_import_online/static/description/index.html index 2b839235..518f8630 100644 --- a/account_statement_import_online/static/description/index.html +++ b/account_statement_import_online/static/description/index.html @@ -366,7 +366,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:c2c6fa7e76620768efb21c4cde6d59bf79f3822a9c7fa04ba7316b7884342757 +!! source digest: sha256:4e776391899046c094042c9d36dca977e7ac73c791ddc904eaf5ad65c33f2e32 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
This module provides base for building online bank statements providers.