[FIX] ensure_db():
authorChristophe Simonis <chs@openerp.com>
Fri, 7 Feb 2014 15:47:03 +0000 (16:47 +0100)
committerChristophe Simonis <chs@openerp.com>
Fri, 7 Feb 2014 15:47:03 +0000 (16:47 +0100)
commit0b9bf8e2bfb85736f2a0e2cf4e32ec01a5c13b22
treee0ec78f35fd60d35911b417c11a17fb4c65098b1
parent7ac7b2599edc3d1ba35fba41a6b06162f08409c6
[FIX] ensure_db():
 When user ask a specific database on a new session, the nodb router
 has been used to find the route.
 Depending on installed module in the database, the rendering of the page
 may depend on data injected by the database route dispatcher.
 Thus, we redirect the user to the same page but with the session cookie set.
 This will force using the database route dispatcher...

bzr revid: chs@openerp.com-20140207154703-o0gl58i2b56eridx
addons/web/controllers/main.py