[20.0] account_online_synchronization: RPC_ERROR after bank consent (redirect)
Odoo Version
- 18.0
- 19.0
- 20.0
- Other (specify)
Odoo Online (SaaS); the server reports 20.0+e, web client assets ccc6537. Enterprise modules in the traceback: account_online_synchronization, account_online_payment. The code path below was checked against the 20.0 branch of odoo/enterprise as of 2026-08-20 (b9e467ecf8): the traceback's line numbers (596, 630, 954, 1012, and 41 in account_online_payment/models/account_online_link.py) match that revision.
Steps to Reproduce
Setup: a fresh Odoo Online 20.0 database (created the day before), French company, Accounting with the stock chart. One bank journal already holds statement lines loaded from the bank's statements up to 2026-09-15, all reconciled, and the global lock date (« Lock Everything ») is 2026-09-15, so that the synchronisation starts after the loaded period. No online connection existed yet on the database. Institution: Boursorama Banque (France), provider Enable Banking through the Odoo proxy.
- Accounting dashboard → the bank journal's card → online synchronisation (« Connecter votre banque ») → choose « Boursorama Banque ».
- Complete the bank's consent in the proxy iframe (login, second factor, account selection at the bank) and let it return to Odoo.
Current behaviour: the iframe returns and an « RPC_ERROR — Odoo Server Error » dialog opens with the traceback below (server time 25/Sep/2026 07:18:44). On the database the account.online.link record had been created when the iframe opened (note « Connexion bancaire créé » at 07:17:28) but was left « Not connected », with no account.online.account and no journal linked. Starting the connection again from the same card, with the same link record, went through: the accounts exposed by the bank were fetched at 07:20:04, the link went « Not connected → Connected » at 07:20:33, the chosen account was linked to the journal at 07:21:28 and its transactions since the lock date were imported. A Qonto connection made right after, through the same provider, went through without any error (07:23:30).
Expected behaviour: no server traceback. The proxy's answer on /proxy/v2/connection_status was a redirect (error code 300, which _handle_response itself comments as « redirect, not an error »). Every other caller turns that answer into reopening the iframe in the mode the proxy asks for; success() should do the same, or ignore it there, since that call only refreshes the consent expiry date and the payment flags.
Where it goes wrong (account_online_synchronization/models/account_online.py, branch 20.0):
success()(l. 1000) writes the data returned by the iframe, then callsself._update_connection_status()(l. 1012) with no exception handling._update_connection_status()(l. 952) callsself._fetch_odoo_fin('/proxy/v2/connection_status', ignore_status=True)(l. 954);account_online_paymentextends it (l. 41) and only reads the returned data._handle_response()(l. 603) raisesOdooFinRedirectException(mode=…)when the proxy answers with error code 300 (l. 630).ignore_status=Trueonly skips the local « Please reconnect your online account » check on a disconnected record (l. 569–570); it does not cover the redirect answer.OdooFinRedirectExceptionis aUserErrorsubclass, so the web client shows it as a server error with the traceback. The other callers catch it:_fetch_transactions(l. 862 and l. 907,except OdooFinRedirectException→_handle_odoofin_redirect_exception(mode=…)) and_open_iframe(l. 1117).
Possible fixes (either one):
- In
success(), wrap the_update_connection_status()call withexcept OdooFinRedirectException as e: return self._handle_odoofin_redirect_exception(mode=e.mode), as_fetch_transactionsdoes, so the iframe reopens in the requested mode. - In
_update_connection_status(), treat the code-300 answer as non-blocking whenignore_status=True(log it and return an empty dict), and letsuccess()continue to_success_<mode>.
Why the proxy answered with a redirect right after a completed consent for this institution is not visible from the database side; the second attempt two minutes later succeeded, so it may be a timing matter with the bank. The unhandled exception on the Odoo side is independent of that cause.
Log Output
RPC_ERROR
Odoo Server Error
Occurred on <database>.odoo.com on model account.online.link on 25/Sep/2026 07:18:44
Traceback (most recent call last):
File "/home/odoo/src/odoo/20.0/odoo/http/router.py", line 446, in serve_db
return retrying(serve_func, env=request.env)
File "/home/odoo/src/odoo/20.0/odoo/http/retrying.py", line 56, in retrying
result = func()
File "/home/odoo/src/odoo/20.0/odoo/http/router.py", line 593, in serve_ir_http
response = request.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/20.0/odoo/http/dispatcher.py", line 371, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/20.0/odoo/addons/base/models/ir_http.py", line 473, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/src/odoo/20.0/odoo/http/routing_map.py", line 218, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/odoo/20.0/addons/web/controllers/dataset.py", line 32, in call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/20.0/odoo/service/model.py", line 59, in call_kw
result = method(recs, *args, **kwargs)
File "/home/odoo/src/enterprise/20.0/account_online_synchronization/models/account_online.py", line 1012, in success
self._update_connection_status()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/odoo/src/enterprise/20.0/account_online_payment/models/account_online_link.py", line 41, in _update_connection_status
data = super()._update_connection_status()
File "/home/odoo/src/enterprise/20.0/account_online_synchronization/models/account_online.py", line 954, in _update_connection_status
resp_json = self._fetch_odoo_fin('/proxy/v2/connection_status', ignore_status=True)
File "/home/odoo/src/enterprise/20.0/account_online_synchronization/models/account_online.py", line 596, in _fetch_odoo_fin
return self._handle_response(resp_json, url, data, ignore_status)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/enterprise/20.0/account_online_synchronization/models/account_online.py", line 630, in _handle_response
raise OdooFinRedirectException(mode=error.get('data', {}).get('mode', 'link'))
odoo.addons.account_online_synchronization.models.account_online.OdooFinRedirectException: Redirection
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://<database>.odoo.com/web/assets/ccc6537/web.assets_web.min.js:3318:165)
at XMLHttpRequest.<anonymous> (https://<database>.odoo.com/web/assets/ccc6537/web.assets_web.min.js:3325:13)Support Ticket
#6600250 (odoo.com/help, opened 2026-09-25 with the same report).
Source: odoo/odoo