[FIX] web: fix error-handling infinitely-looping on non-chrome browsers
The formatTraceback function relies on _t to add the error message to tracebacks, it was recently moved around while refactoring but it seems that its dependency was forgotten and not imported. This causes the attempt to call _t to crash, which will try to format the error, which will again try to call _t and crash, until the browser itself crashes. This commit fixes that issue by adding the required import. closes odoo/odoo#67079 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { loadJS } from "web.ajax";
|
||||
import BrowserDetection from "web.BrowserDetection";
|
||||
import { _t } from "web.core";
|
||||
/**
|
||||
* Format the traceback of an error. Basically, we just add the error message
|
||||
* in the traceback if necessary (Chrome already does it by default, but not
|
||||
|
||||
Reference in New Issue
Block a user