Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3809 Widoki

i have several scss files for the css design in odoo snippets, now when i add it to the manifest in web.assets_frontend , it is not fetching the styling . But it works good when i convert it to .css extension . 


What do i need to do here?

I have reinstalled libsass again and again but still doesnt work.

Awatar
Odrzuć
Najlepsza odpowiedź

there are a few things you can try:

  1. Verify SCSS Compilation: Ensure that your SCSS files are being compiled correctly into CSS. You can do this by running the SCSS compiler manually outside of Odoo to check for any errors or issues. Make sure the compiled CSS file is generated successfully.

  2. Confirm Manifest Declaration: Double-check your manifest file (typically __manifest__.py or manifest.py) and ensure that you have correctly declared your SCSS file in the web.assets_frontend section. The entry should specify the path to the SCSS file relative to the module's directory.

  3. Check Load Order: Odoo follows a specific order when loading assets. Make sure that the module containing your SCSS file is placed after any modules that may be modifying or overriding the same CSS classes. You can achieve this by adjusting the module's sequence or dependencies.

  4. Verify File Paths: Confirm that the paths specified in the manifest accurately reflect the actual file locations. Ensure that the SCSS file is in the expected location and that there are no typos or errors in the path declaration.

  5. Clear Cache: After making any changes to the manifest or SCSS files, clear Odoo's cache to ensure that the changes are picked up. You can do this by restarting the Odoo server or using the developer mode to clear the cache.

  6. Check Log Files: Check Odoo's log files for any error messages or warnings related to asset loading or SCSS compilation. The log files can provide valuable information about the issue you're facing.

  7. Consider Compatibility: Odoo may have specific requirements or limitations regarding SCSS compilation. Ensure that you're using a compatible version of libsass and that it is


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 20
2358
0
mar 23
207
1
lip 24
1114
1
lip 24
1166
0
mar 24
557