Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
2574 Prikazi

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.






Avatar
Opusti
Best Answer

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

Avatar
Opusti
Avtor Best Answer

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 :)

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jul. 24
1318
2
dec. 24
947
2
avg. 25
108
1
jul. 25
494
4
jun. 25
2110