13 lines
467 B
Python
13 lines
467 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models
|
|
|
|
class AccountJournal(models.Model):
|
|
_inherit = 'account.journal'
|
|
|
|
def fetch_online_sync_favorite_institutions(self):
|
|
# Prevent hangs/infinite loops on neutralized databases by bypassing external API calls.
|
|
if self.env['ir.config_parameter'].sudo().get_param('database.is_neutralized'):
|
|
return []
|
|
return super(AccountJournal, self).fetch_online_sync_favorite_institutions()
|