Minor changes in import-from-odoo
This commit is contained in:
parent
c68646c694
commit
712aa5809d
@ -10,11 +10,9 @@ import os, json
|
||||
import ast
|
||||
from xml.etree import ElementTree as ET
|
||||
from frappe.utils.csvutils import read_csv_content
|
||||
from frappe.utils import cstr
|
||||
import frappe
|
||||
|
||||
|
||||
path = "/Users/nabinhait/Documents/openerp/openerp/addons"
|
||||
path = "/Users/nabinhait/projects/odoo/addons"
|
||||
|
||||
accounts = {}
|
||||
charts = {}
|
||||
@ -54,7 +52,6 @@ def go():
|
||||
|
||||
def get_default_account_types():
|
||||
default_types_root = []
|
||||
for file in ["data_account_type.xml"]:
|
||||
default_types_root.append(ET.parse(os.path.join(path, "account", "data",
|
||||
"data_account_type.xml")).getroot())
|
||||
return get_account_types(default_types_root, None, prefix="account")
|
||||
|
Loading…
x
Reference in New Issue
Block a user