跳至內容
選單
此問題已被標幟
2 回覆
2043 瀏覽次數

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.

頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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.

相關帖文 回覆 瀏覽次數 活動
1
12月 23
4580
0
4月 24
1669
4
3月 24
5228
1
3月 24
1764
1
9月 22
3871