Odoo Help


Custom theme images not working when in separate addons folder.

Kurt Haselwimmer
on 12/17/15, 1:39 AM 2,702 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.

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

Ermin Trevisan
on 12/17/15, 3:10 AM

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

Hertford Developments Limited, Kurt Haselwimmer
on 12/17/15, 3:20 AM

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.

Ermin Trevisan
on 12/17/15, 3:27 AM

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).

Ermin Trevisan
on 12/17/15, 3:48 AM

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

Hertford Developments Limited, Kurt Haselwimmer
on 12/17/15, 3:50 AM

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

Ermin Trevisan
on 12/17/15, 3:54 AM

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.

Hertford Developments Limited, Kurt Haselwimmer
on 12/17/15, 3:59 AM

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.

Ermin Trevisan
on 12/17/15, 4:01 AM

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: - - [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: - - [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

Hertford Developments Limited, Kurt Haselwimmer
on 12/17/15, 5:25 AM

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.

Ermin Trevisan
on 12/17/15, 11:13 AM

Looks like content is blocked by selinux.

Kurt Haselwimmer
On 12/17/15, 1:40 AM



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/17/15, 1:39 AM
Seen: 2702 times
Last updated: 10/11/16, 7:50 AM