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