Skip to Content
Menu
This question has been flagged
12 Replies
8844 Views

When a custom themes - eg theme_zap are put into a separate addons folder (eg /mnt/addons as recommended in the official docker build https://github.com/odoo/docker/blob/master/9.0/Dockerfile) none of the images show up

1) in the backend module description

2) In the front end snippet editing bar

Am I missing something here or is there something else that needs to be done with themes to make them work in a separate addons folder. The extra addons path has been correctly added to the config file. I wish to put the themes in a separate addons folder as a) it the natural expectation and what we have been led to believe is good practise and b) I don't want my customised themes being blown away by redeployments of the main codebase.

Avatar
Discard

Another stupid question then, you have all dependencies installed (theme_common, treehouse theme)?

Author

Yes - those modules are also installed alongside in /mnt/addons and any other more fundamental dependencies that are required for v9 themes - all installed.

I'll try it on my regular 9.0 installation to see what happens, if it works, it seems to be a docker issue. I'll keep you posted.

I did install it on my regular 9.0 deb package installation (Ubuntu 14.04) and it works fine after upgrading the modules list and installing all corresponding modules. I did not install any other dependencies for themes (except of nodejs, less and lessc of course).

Author

in the standard addons folder or a separate one that is specified in the config file ?

Of course in an extra addons folder specified in my config file :-)

Author

Okay I need to explore what is happening in my installation then - we built this on centos in docker, as the 'official' docker script was completely out of date due to the version naming convention change on the 25th November. This seemed to be fixed yesterday so maybe we will return to that approach.

While looking at the docker file you have linked to, I see that the version to be installed there is the one from before yesterday (20151215), if that helps.

Author

I tried moving theme_treehouse to the main addons folder. I also checked the folder and file access rights and set all owners and groups to root:root to match all the other themes. Still not fixed. Here is the small excerpt from the log file: 2015-12-17 10:16:15,785 414 INFO inst4 werkzeug: 146.198.207.237 - - [17/Dec/2015 10:16:15] "GET /theme_treehouse/static/src/less/options/layout/footer_gray_lighter.less.css HTTP/1.1" 304 - 2015-12-17 10:16:20,058 414 INFO inst4 werkzeug: 146.198.207.237 - - [17/Dec/2015 10:16:20] "GET /theme_treehouse/static/src/js/theme_animation.js HTTP/1.1" 404 You can see that the css is loaded but apparently the js file cannot be found. The js has file access rights 644

In my case I did create the addons directory with the same user I have used to install Odoo (in my case it is the user "ubuntu". I do have the theme_treehouse in the same custom addons directory and this directory and all of its subdirectories are owned by the user/group ubuntu/ubuntu with 775 permissions.

Best Answer

Looks like content is blocked by selinux.

Avatar
Discard
Author Best Answer

 


 
Avatar
Discard
Related Posts Replies Views Activity
0
May 24
250
1
Oct 23
646
2
Aug 20
22697
1
Feb 24
3518
5
Nov 17
7222