Skip to Content
Menu
This question has been flagged
1 Reply
3006 Views

Hi folks. I've been making some quick-and-dirty css changes via the website module's Customize > HTML/CSS/JS Editor functionality. (I know, I know, better to make a new module etc etc, but that's a bit beyond my skill set and time budget, and I maintain that any CMS system should allow users to make simple CSS adjustments, so that's what I'm sticking with...) 

I made a typo and got an error message that the SCSS failed to compile. Somehow it "broke" the CSS of the page, which messed up the look of my page, so I couldn't get back into the editor on my browser; the page was messed up enough that the editor couldn't load. I tried looking *everywhere* for where these edits might appear. The file that's indicated in the editor ( /website/static/src/scss/user_custom_rules.scss) showed only the default commented content of the unaltered file—none of my changes were there. Couldn't find any of my edits in any lines in the ir_ui_view table in the database. Grepped the ODOO directory and came up blank so far (though it's still running... been running for a looong time). Help! Where on earth are these changes being written to, and how can I fix errors in them in situations when they have messed up my website?

Somehow I was able to revert these changes by using another user's account; the site still looked fine on her browser and I could get into the editor, somehow, even though it was spitting the error message about the compilation failing. But this workaround will not always be possible for me.

Thanks for any help!

Avatar
Discard
Best Answer

Hi Doug:

The customized user_custom_bootstrap_overridden.scss file is stored in the Attachments model. Enable developer mode, go to Settings > Technical > Database Structure > Attachments and search for attachments named user_custom_bootstrap_overridden. You will find both the original and the custom file in there.

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
22
0
Dec 24
36
2
Sep 24
342
1
Oct 24
605
3
Jul 24
2172