[IMP] account_statement_import_online: only update journal when online service is set

This prevents a flood of logs in case your journals are written very often.
This commit is contained in:
Stefan Rijnhart
2024-02-06 10:39:34 +01:00
committed by Carolina Fernandez
parent 2c891056f1
commit c40ca4d848
4 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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):

View File

@@ -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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/bank-statement-import/tree/16.0/account_statement_import_online"><img alt="OCA/bank-statement-import" src="https://img.shields.io/badge/github-OCA%2Fbank--statement--import-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/bank-statement-import-16-0/bank-statement-import-16-0-account_statement_import_online"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/bank-statement-import&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module provides base for building online bank statements providers.</p>