Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary field causing issue #31

Open
amineamri3 opened this issue Feb 8, 2023 · 3 comments
Open

Binary field causing issue #31

amineamri3 opened this issue Feb 8, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@amineamri3
Copy link

amineamri3 commented Feb 8, 2023

when downloading a binary file it causes an error and a permanent loading in the UI, after some investigation it seems like the binary file is passed directly to the "get_file" function and causes the json.Parse() to throw an error.

Uncaught SyntaxError: Unexpected token 'J', "JVBERi0xLj"... is not valid JSON http://localhost:8069/web#id=5&action=315&model=request.request&view_type=form&cids=&menu_id=198:1 Traceback: SyntaxError: Unexpected token 'J', "JVBERi0xLj"... is not valid JSON at JSON.parse (<anonymous>) at Object.get_file (http://localhost:8069/web/content/668-a4f8445/web.assets_backend.js:6582:108) at Class.get_file (http://localhost:8069/web/content/656-a1c90e6/web.assets_common.js:4876:249) at Class.on_save_as (http://localhost:8069/web/content/668-a4f8445/web.assets_backend.js:982:1599) at Class.click (http://localhost:8069/web/content/668-a4f8445/web.assets_backend.js:982:413) at HTMLAnchorElement.<anonymous> (http://localhost:8069/web/content/656-a1c90e6/web.assets_common.js:4789:11) at HTMLAnchorElement.dispatch (http://localhost:8069/web/content/656-a1c90e6/web.assets_common.js:1740:447) at elemData.handle (http://localhost:8069/web/content/656-a1c90e6/web.assets_common.js:1726:166)

@gmarczynski gmarczynski added the bug Something isn't working label Feb 8, 2023
@gmarczynski
Copy link
Owner

Hello, thank you for the report.

I was unable to reproduce your problem with version 16.0.
Can you please share your Odoo version?

Thanks!

@amineamri3
Copy link
Author

Odoo version 14

@gmarczynski
Copy link
Owner

Thank you. I will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants