Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
251 Lượt xem

I am unable to add Carrier Accounts for EasyPost. My system: v19 Online.

I have properly set both the Test Key and Production Key for EasyPost.

I get the following JS error when selecting 'anything' in the Carrier dropdown:

UncaughtClientError > TypeError


Uncaught Javascript Error > undefined is not an object (evaluating 'ev.target.value')


Occured on https://purpose-solutions-llc.odoo.com/web/assets/5651f66/web.assets_web.min.js:572:31

Ảnh đại diện
Huỷ bỏ

I'm also running into this same issue.

Tác giả

Chris, I actually put together a FIX. It a JS/React bug. My fix required creating a Local Override (in the Developer Mode of Safari). The code is just a few lines but it solves the issue. I submitted the FIX to Support. Hopefully, they test and roll it out quickly. 

Tác giả Câu trả lời hay nhất

Awesome! Congrats Chris. I wasn't sure if you would want to do the Local Override (or I would have posted the code I used). For any others, here is the code that I used:

NOTE: the problem exists in web.assets._web.js 

Search that file for: carrier_type_selection

The broken code:

onChange(ev) {

  const value = JSON.parse(ev.target.value);

  this.props.record.update({ [this.props.name]: value }, { save: this.props.autosave });

}

Hope this helps any others.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Thanks for the pointer Scott! I was able to get past it as well for the moment.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 25
420
3
thg 10 25
399
2
thg 10 25
469
1
thg 3 25
758
2
thg 10 25
251