mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user