Skip to content
Snippets Groups Projects
Commit f6ab2198 authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] website_sale: don't assert, just check


If the session is unbound before a call to this route, this assertion
will raise. The point of this code is not to crash when the parameters
are incorrect or the session unbound - the point is to avoid leaking
incorrect information.

Simply return an empty object to the JS code, it will stop polling after
a single failed attempt instead of crashing.

closes odoo/odoo#36356

Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
parent 9e100a7d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment