Firstly, we should not rely on anything coming from the client side to solve a server-side issue, as OpenERP is supposed to be stateless.
Secondly, calling close_db has major and global effects on the server, impacting all transactions, so this certainly cannot be called as soon as someone logs out.
Sorry, this does not seem like a valid approach.
Firstly, we should not rely on anything coming from the client side to solve a server-side issue, as OpenERP is supposed to be stateless.
Secondly, calling close_db has major and global effects on the server, impacting all transactions, so this certainly cannot be called as soon as someone logs out.