![]() You should now find that you are able to install your clone of theme_clean as it's own module. Save this file and go back to Odoo's backend and then go to Settings > Update Modules List and then choose to update list to refresh your module list available for install in Odoo 'description': 'My Custom Theme Description', Sudo pico -w /opt/odoo/custom/addons/theme_custom/_openerp_.pyĬhange name, description and author to reflect your own new theme's details. open up the _openerp_.py file in your module's root directory:./opt/odoo/custom/addons/theme_custom/static/less./opt/odoo/custom/addons/theme_custom/static/js./opt/odoo/custom/addons/theme_custom/static/css.repeat step 4.1 for all files found in the following directories:.find all references to /theme_clean/static/ and replace them with /theme_custom/static/) /opt/odoo/custom/addons/theme_custom/static/xml/.open up theme.xml in the following directory:.find /theme_clean/static/ and replace with /theme_custom/static/.open up all xml files in this directory and find and replace the following snippets in each file with your theme's new path:.cd /opt/odoo/custom/addons/theme_custom/views.go to the views directory of your new theme:.sudo cp -r /opt/odoo/custom/addons/theme_clean /opt/odoo/custom/addons/theme_custom.copy theme clean to your own theme directory:.Both theme_clean and theme_zen should be working on the latest version of 8.0 (RC1)Ĭopying the theme_clean module to create your own new module: You should now be able to find your new themes for installation. ![]() Login to Odoo as the admin user and go to Settings > Update Modules List and then click the red Update List button conf file looks like the following:Īddons_path = /opt/odoo/odoo-server/addons,/opt/odoo/custom/addons find the line "addons_path" = and add a comma after your default addons directory and add your new custom addons directory.add this addons directory to your nf or nf file:.sudo git clone /opt/odoo/custom/addons/.Clone the design-themes repository into a custom addons directory (I created /opt/odoo/custom/addons as my odoo installation is at /opt/odoo/odoo-server/addons):.I am currently working on a modification of the theme_clean module with a custom bootstrap theme and can therefore provide you with some basic instructions on how to modify this theme to include your own snippets, javascript and css. It is possible to repackage any bootstrap theme to be installed with Odoo as a module.īasically you would need to repackage the "building blocks" of the external bootstrap theme that you would like to use into odoo snippets using the snippets.xml file found in your theme folder under the folder called views.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |