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

Hey guys, 


I'm getting this error after migrating a bd to v17, I thought it was the lack of the file inside the module, because supposedly this module in version 17 doesn't have this js file.


However, even adding it the error remains the same, does anyone know how I can overcome this?


Thanks in advance.






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

You need to get latest code from https://github.com/OCA/server-ux/tree/17.0

I see that your date_range module code is in v16 not v17

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

Hello,


Thank you very much for your help.


But I managed to solve the problem in another way.


For some reason, even installing the module in version 17, it was automatically creating the error js file and the folder with the view inside the static, after I deleted these two files, it worked.


But thanks anyway :)

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

Hi,

You can try importing FIELD_OPERATORS and applying the patch as shown in the code below:

const { FIELD_OPERATORS, FIELD_TYPES } = require('web.searchUtils');

const { patch } = require('web.utils');


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 24
1358
2
thg 12 24
984
1
thg 8 25
1719
2
thg 8 25
276
1
thg 7 25
545