Fix bug \#1197323 on Launchpad.

Details:
https://bugs.launchpad.net/openerp-web/+bug/1197323