İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2036 Görünümler

Hello everyone, I hope you are all doing very well.


In order to decrease the storage of the test instances, we have removed all the stored attachments; however, this brought us a styles issue:


Styles compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.


I have changed the periods to commas so that they are not recognized as links.


Could not get content for /website/static/src/scss/options/user_values,custom,web,assets_common,scss defined in bundle 'web.assets_common'.


Could not get content for /website/static/src/src/scss/options/colors/user_color_palette,custom,web,web,assets_common,scss defined in bundle 'web.assets_common'.


Could not get content for /website/static/src/scss/scss/options/colors/user_theme_color_palette,custom,web,web,assets_common,scss defined


From what I have seen, the problem is because the Web Site module had the style files of the installed theme saved as attachments, when I deleted them, I got this problem. I re-entered the files as attachments, and nothing. I have checked the code to see those files, and they are in the directory that defines the error. I compare it with our production instance that has the same theme, and it has the same directory. 


As far as I have seen, the problem is because the Web Site module had the style files of the installed theme saved as attachments, and when I deleted them, I got this problem. I re-entered the files as attachments, and nothing. I have checked the code to see those files, and they are in the directory that defines the error. It won't let me reset the theme or reinstall any of them. I compare it with our production instance that has the same theme, and it has the same directory. I have not yet tried to reinstall the website module, because I do not want to do something so drastic, especially because it does not always remove everything from the module, and then can bring problems to reinstall it. Does anyone know or have any idea how to fix the error?


No more to add. Thank you very much in advance. Happy day to all of you.

Avatar
Vazgeç
Üretici En İyi Yanıt

It would be to enter again the attachments that the error mentions to me, but assigning them as URL the path that specifies the error, since it is there where it looks for it at the moment of executing the styles. It should be noted that this field is not assigned at the time of creating an Attachment record, and it is not visible, you must go to Odoo Studio, make it visible and then edit its value.


Thanks to all. Start of the week.

Avatar
Vazgeç
En İyi Yanıt

Hi,

Please try Activating developer mode with Assets.You need to go to Settings -> General Settings -> Activate the developer mode (with assets)


Hope it helps

Avatar
Vazgeç
Üretici

Hello, I hope everyone is well.

I enabled developer mode with assets and still had the same problem. However, I was able to solve the problem in another way.

It would be to enter again the attachments that the error mentions to me, but assigning them as URL the path that specifies the error, since it is there where it looks for it at the moment of executing the styles. It should be noted that this field is not assigned at the time of creating an Attachment record, and it is not visible, you must go to Odoo Studio, make it visible and then edit its value.

Thanks to all. Start of the week.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 23
4573
0
Nis 24
1665
4
Mar 24
5222
1
Mar 24
1764
1
Eyl 22
3869