This question has been flagged

When I click Document Layout Choose the layout of your documents to upload my design of the reports and invoices I get this Error:

UncaughtPromiseError > TypeError

Uncaught Promise > Cannot read properties of undefined (reading 'Symbol(html)')

TypeError: Cannot read properties of undefined (reading 'Symbol(html)')

at Function.escape ( https://\.\.\.\.\./web\ /assets/2802\-e0a905d/web\.assets_common\.min\.js:4987:37\)

\ \ \ \ \ at\ https://\.\.\.\.\.\.\.\./web/assets/2803\-49dc42b/web\.assets_backend\.min\.js:4456:885

\ \ \ \ \ at\ Array\.\ map\ \(\)\

\ \ \ \ at\ Class\._notifyInvalidFields\ \(\ https://\.\.\.\.\.\.\.\./web/assets/2803\-49dc42b/web\.assets_backend\.min\.js:4456:786\)

\ \ \ \ \ at\ Class\.canBeSaved\ \(\ https://\.\.\.\.\.\./web/assets/2803\-49dc42b/web\.assets_backend\.min\.js:4445:283\)

\ \ \ \ \ at\ Class\._saveRecord\(https://\.\.\.\.\./web/assets/2803\-49dc42b/web\.assets_backend\.min\.js:4456:1269\)

\ \ \ \ \ at\ https://..../web/assets/2802-e0a905d/web.assets_common.min .js:4720:607

Avatar
Discard

hello
Do u have any update if this problem was resolved ?

Hey did you solve this issue?

If you did so please let me know the solution.


Best Answer

The error message "UncaughtPromiseError > TypeError: Uncaught Promise > Cannot read properties of undefined (reading 'Symbol(html)')" suggests that there is an issue with the JavaScript code that is responsible for handling the Document Layout feature in Odoo. Specifically, there is an error in the escape function, which is trying to read the Symbol(html) property of an object that is undefined.

This error could be caused by a number of things such as a bug in the code, a missing dependency, or an issue with the configuration of the system.

Here are a few things you can try to resolve the issue:

  1. Check the browser console for any other error messages that might give more information about the problem.

  2. Try to clear the browser cache and cookies and reload the page to see if that resolves the issue.

  3. Check that all the dependencies are correctly installed and updated.

  4. If you have made any recent changes to the system, try rolling back to the previous working state to see if the issue is resolved.

  5. You can also try to reproduce the error and check the server logs for more information about the error.

  6. If you are using a custom report or invoice layout, you can try to upload a different layout or the default layout to see if the problem is with the custom layout.

  7. You can also check the version of the Odoo, as some versions of Odoo have different ways of handling the requests.

Avatar
Discard