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

[16.0] Get error "Uncaught Javascript Error > invalid parameter format" when using. export data #103232

Closed
anhjean opened this issue Oct 16, 2022 · 7 comments
Labels
Packaging Anything related to packaged Odoo installations (docker, .exe, .deb, etc)

Comments

@anhjean
Copy link
Contributor

anhjean commented Oct 16, 2022

Impacted versions: Odoo 16.0 (Community Edition)

Steps to reproduce:

  • Steps 1: Goto Contacts list view.
  • Steps 2: Choose the contacts that you want to export
  • Steps 3: Click on 'action' then click on "export' menu item
  • Steps 4: Click on ' Export' button

Current behavior:

  • Show "Uncaught Javascript Error > invalid parameter format"
  • Note: This error occurred on all model export screen.

Expected behavior:

  • Goto download xlsx/csv file step

Video/Screenshot link (optional):

image

Support ticket number submitted via odoo.com/help (optional):

@anhjean anhjean changed the title Get error "Uncaught Javascript Error > invalid parameter format" when using. export data [16] Get error "Uncaught Javascript Error > invalid parameter format" when using. export data Oct 16, 2022
@anhjean anhjean changed the title [16] Get error "Uncaught Javascript Error > invalid parameter format" when using. export data [16.0] Get error "Uncaught Javascript Error > invalid parameter format" when using. export data Oct 16, 2022
@anhjean
Copy link
Contributor Author

anhjean commented Oct 16, 2022

i found that if i changed the condition at line 225 of "addons/web/static/src/core/network/download.js files from "(index !== -1 && index !== string.length)" to "(index == -1 && index !== string.length), everything worked ok

@kmw
Copy link

kmw commented Oct 28, 2022

How can I access addons/web/static/src/core/network to edit the download.js inside of a docker container?
By any chance will this also fix the website link from the drop down menu
https://dronesla.net/web#action=website.website_preview&path=%2F&website_id=1
https://youtu.be/V9-enVedPo8 is a video I created demonstrating this.

@rvjjcolina
Copy link

rvjjcolina commented Jun 27, 2023

THANK YOU

@vava-odoo
Copy link
Contributor

Seems to be fixed, as non reproducable on runbot. Don't hesitate to re-open if it's not the case.

@megahall
Copy link

The latest odoo nightly deb still seems to hit this issue for me.

@vava-odoo
Copy link
Contributor

@megahall Please provide steps to reproduce, as I'm not able to reproduce with the steps in the description above.

@andriusdj
Copy link

Hello, export does not work in any of the models. Simply clicking export causes that error.

Also there is this: https://www.odoo.com/forum/help-1/odoo16-export-data-error-in-all-modules-how-to-resolve-it-224621

This issue is due to a wrong version for python package:

werkzeug
    require 2.0.2 (cf https://github.com/odoo/odoo/blob/16.0/requirements.txt)
    David you are in 2.2.3
    jiafei, I let you check on your side

Apparently this might be reproduced on Debian bookworm (v12) Linux distribution (current stable) where things are new and the python package mentioned is indeed version 2.2.2:

root@xxx:~# apt policy python3-werkzeug
python3-werkzeug:
  Installed: 2.2.2-3
  Candidate: 2.2.2-3
  Version table:
 *** 2.2.2-3 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
root@xxx:~# apt policy python3
python3:
  Installed: 3.11.2-1+b1
  Candidate: 3.11.2-1+b1
  Version table:
 *** 3.11.2-1+b1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status

All packages were installed via the distribution package manager from the repositories instead of pip as suggested in the documentation:
https://www.odoo.com/documentation/16.0/administration/install/install.html

"Using your distribution packages is the preferred way of installing dependencies. Alternatively, you can install the python dependencies with pip."

So can we get an upgrade of this dependency? 2.2.2 should not have breaking changes to 2.0.2, no?

@vava-odoo vava-odoo added the Packaging Anything related to packaged Odoo installations (docker, .exe, .deb, etc) label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packaging Anything related to packaged Odoo installations (docker, .exe, .deb, etc)
Projects
None yet
Development

No branches or pull requests

6 participants