按老肖第2版第5章导入会计科目出错
-
5.0.7all on one版本,请求指点
错误提示如下:
XML-RPC error !('No references to .myacc_type_view', 'Traceback (most recent call last):n File "netsvc.pyo", line 244, in dispatchn File "netsvc.pyo", line 73, in __call__n File "service\web_services.pyo", line 576, in executen File "osv\osv.pyo", line 58, in wrappern File "osv\osv.pyo", line 119, in executen File "osv\osv.pyo", line 111, in execute_crn File "osv\orm.pyo", line 854, in import_datan File "osv\orm.pyo", line 682, in process_linessn File "tools\misc.pyo", line 683, in cached_resultn File "C:\Program Files\OpenERP AllInOne\Server\addons\base\ir\ir_model.py", line 447, in _get_idnException: No references to .myacc_type_viewn')
csv文件如下:
id,code,name,user_type:id,parent_id:id,company_id:db_id,currency_mode,type,reconcile
myacc_0,0,迷你科目表,myacc_type_view,,1,current,view,False
myacc_1001,1001,库存现金,myacc_type_cash,myacc_0,1,current,other,False
myacc_1002,1002,银行存款,myacc_type_cash,myacc_0,1,current,other,False
myacc_1036,1036,库存商品,myacc_type_other,myacc_0,1,current,other,False
myacc_2015,2015,应交税费,myacc_type_other,myacc_0,1,current,view,False
myacc_201501,201501,应交税销项,myacc_type_other,myacc_2015,1,current,other,False
myacc_201502,201502,应交税进项,myacc_type_other,myacc_2015,1,current,other,False
myacc_6001,6001,主营业务收入,myacc_type_other,myacc_0,1,current,other,False
myacc_1014,1014,应收帐款,myacc_type_income,myacc_0,1,current,view,False
myacc_10140001,10140001,xxx,myacc_type_income,myacc_1014,1,current,receivable,True
myacc_10140002,10140002,yyy,myacc_type_income,myacc_1014,1,current,receivable,True
myacc_2011,2011,应付帐款,myacc_type_expense,myacc_0,1,current,view,False
myacc_20110001,20110001,xxx,myacc_type_expense,myacc_2011,1,current,payable,True
myacc_20110002,20110002,yyy,myacc_type_expense,myacc_2011,1,current,payable,True[[i] 本帖最后由 jackie-h 于 2010-4-16 23:34 编辑 [/i]]
-
"id","name","code","close_method","partner_account","sequence","sign"
"myacc_type_view","视图","view","none","False",5,1
"myacc_type_income","收入","income","unreconciled","False",5,1
"myacc_type_expense","支出","expense","unreconciled","False",5,1
"myacc_type_cash","现金","cash","balance","False",5,1
"myacc_type_other","其它","other","none","False",5,1我是先导入的科目类型,csv文件如上,在软件里面可以看到这些类型
科目表也有了也都建立了,软件里面看到的如图[[i] 本帖最后由 jackie-h 于 2010-4-20 22:54 编辑 [/i]]