Custom setting and accessing it through JavaScript in Odoo -


i change minor visual things based on given odoo instance role (production, testing, etc.). don't need through website - hard coded variable i'm thinking. have module contains javascript handles it, don't know how 1) set role variable , 2) how access in javascript on odoo website.

what's best way it?

i thinking adding custom setting field in openerp-wsgi.py, conf['role'] = 'production', don't know if that's possible.

thanks!


Comments