This question has been flagged
1 Reply
8141 Views

I would like to know what version of Bootstrap is being used for the frontend of Odoo v8.

Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

Avatar
Discard

Hi Stephen, From the design-themes branch at github.com/odoo/design-themes i'm guessing it's 3.0 (check the bootstrap.css file in the theme_zen module and you'll see what I mean). However I believe if you want to create a new module with another version of bootstrap (eg. 3.1) from my understanding this will work just as well, as you are just replacing the bootstrap.css with whichever version you prefer to work with. I am currently working on a modified version of the theme_zen package replacing 3.0 with 3.1, i'll reply back to this thread once it's finished to let you know what I find.

Author

I would be interested in seeing what you have in updating the bootstrap version through a module.

Hi Stephen, It will take me some time to make my own theme/module, however i'll reply back to you on this thread once I am done, and will be posting back here: https://www.odoo.com/forum/Help-1/question/Developing-Themes-For-the-WebsiteEcommerce-Module-Currently-in-Trunk-44077 with basic instructions once I fully understand how the theme/module structure works. From my understanding however you are not limited to just bootstrap, you are free to include whatever framework and layout you prefer. Bootstrap is simply what is included in the pre-packaged themes that come with Odoo v8.0 and those that are currently available at github.com/odoo/design-themes. I'd recommend taking a look at the structure of theme_zen at github.com/odoo/design-themes as this will show you how the css, js, xhtml and other components are packaged together in a module. I have downloaded and installed theme_zen successfully on a number of v8.0 instances and have not yet run into any issues. The other theme packages in design-themes I believe are still under heavy development however.

Hi Stephen, Further to this please check out branch 1074 in the runbots (runbot.odoo.com). It looks like this branch is updating the included themes to bootstrap 3.2, so maybe this will make it to the final release of 8.0.

Hi Stephen, I've included some very basic instructions on developing a custom theme with Odoo in the answer to this post: https://www.odoo.com/forum/help-1/question/new-bootstrap-theme-on-website-builder-58809 I'll modify this as I go and create a more comprehensive list of instructions when I can find time.

Author Best Answer

Was version 3.1.0 -> Now 3.2.0 (see: ODOO's Bootstrap upgrade history)

https://github.com/odoo/odoo/blob/8.0/addons/web/static/lib/bootstrap/css/bootstrap.css 

/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

Avatar
Discard
Author

It seems that later the same day of my question, the bootstrap version was updated to version 3.2.0. Thanks ODOO!