In your openerp-server-conf you can define the path to store the user file using the attribute
data_dir = 'Your custom path'
If you need to access an odoo session in your codes, just try the following options.
in python script:
session = env['ir.sessions'] or session = request.session or you can get session info from the route '/web/session/get_session_info' ie, @http.route('/web/session/get_session_info',type='json',auth="none") def get_session_info(self): request.uid = request.session.uid request.disable_db = False return self.session_info()
In js
try to Implement operations on var session = require('web.session'); this session object
Greetings!
Burmese pythis
source share