Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created October 3, 2019 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sehrishnaz/ec8b55c1d8df6cbb1b2f9c11dc32217f to your computer and use it in GitHub Desktop.
Save sehrishnaz/ec8b55c1d8df6cbb1b2f9c11dc32217f to your computer and use it in GitHub Desktop.
How to get data directory that saved in odoo configuration file
from openerp.tools import config
config = tools.config
dir = config['data_dir']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment