[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
parent 62a6ef6c51
commit 02beb74971

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