[FIX] do not reload sidebar during form's on_loaded if it's already setup
authorXavier Morel <xmo@openerp.com>
Tue, 22 Nov 2011 10:26:09 +0000 (11:26 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 22 Nov 2011 10:26:09 +0000 (11:26 +0100)
commita738f4390f718c809b51f02597d1dac148e4314b
tree7c30993fe91a7be3f5c5c3001e5a779b3df635a3
parent300478d1ec13fd9a9c3c624efc9da1df8f79b6b7
[FIX] do not reload sidebar during form's on_loaded if it's already setup

There's no information provided to FormView#on_loaded which should
change the sidebar and reloading it apparently breaks
stuff... severely.

So just don't touch it if it's already setup (assigned to instance
variable), everything works right (as the readonly mode fundamentally
only changes the way the form is displayed, it should not alter its
internal behaviors)

lp bug: https://launchpad.net/bugs/891117 fixed

bzr revid: xmo@openerp.com-20111122102609-faldd3xkc0xhzvu2
addons/web/static/src/js/view_form.js