Added config folder with TSV columns for each model
This commit is contained in:
parent
228aa8ef70
commit
dcb271a571
17
config.py
17
config.py
|
@ -1,9 +1,24 @@
|
|||
import os
|
||||
|
||||
# CONFIG
|
||||
FOLDER = '/home/dig/odoo-export/datas'
|
||||
APPDIR = os.path.dirname( os.path.realpath(__file__) )
|
||||
DATADIR = '%s/datas' % APPDIR
|
||||
CONFDIR = '%s/config' % APPDIR
|
||||
FOLDER = DATADIR
|
||||
|
||||
MODEL_IGNORE = []
|
||||
with open(".modelignore", "r") as file:
|
||||
for line in file:
|
||||
MODEL_IGNORE.append(line.strip())
|
||||
|
||||
|
||||
|
||||
conf_files = os.listdir( CONFDIR )
|
||||
keyword = 'your_keyword'
|
||||
for file in conf_files:
|
||||
if os.path.isfile(file):
|
||||
if file.endwith('.tsv'):
|
||||
eprint( 'Conf file: ', file )
|
||||
f = open(os.path.join(CONFDIR,file),'r')
|
||||
eprint( file[:-4], f.split() )
|
||||
f.close()
|
|
@ -0,0 +1 @@
|
|||
id name display_name application write_uid write_date dependencies_id
|
|
|
@ -0,0 +1 @@
|
|||
id name category
|
|
Loading…
Reference in New Issue