gmarczynski / odoo-web-progress

Dynamic Progress Bar for Odoo Waiting Screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binary field causing issue

amineamri3 opened this issue · comments

commented

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)

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!

commented

Odoo version 14

Thank you. I will have a look.