Added config folder with TSV columns for each model

This commit is contained in:
DiG 2022-02-03 13:10:29 +01:00
parent 228aa8ef70
commit dcb271a571
3 changed files with 18 additions and 1 deletions

View File

@ -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()

View File

@ -0,0 +1 @@
id name display_name application write_uid write_date dependencies_id
1 id name display_name application write_uid write_date dependencies_id

1
config/product.uom.tsv Normal file
View File

@ -0,0 +1 @@
id name category
1 id name category