2015-11-27 93 views
1

我在OpenERP的7某些發票數據導入發票數據,出口,並試圖通過CSV format.Partner_id將其導入odoo 8的定義,但仍然我得到這個錯誤,無法從.csv文件

No matching record found for external id '__export__.account_account_8' in field 'Account' between rows 2 and 3 
No matching record found for external id '__export__.account_journal_1' in field 'Journal' between rows 2 and 3 
No matching record found for external id '__export__.res_partner_5' in field 'Partner' between rows 2 and 3 
No matching record found for external id '__export__.account_invoice_line_3' in field 'Invoice Lines' between rows 2 and 3 
Missing required value for the field 'Partner' (partner_id) between rows 2 and 3 
IntegrityError: null value in column "partner_id" violates not-null constraint 

回答

0

在導入關係字段(假設many2one指向'other.table')時,首先需要導入「other.table」的值。否則,你會得到顯示的錯誤。

+0

對於partner_id,我導入了所有客戶的工作。現在我得到這個錯誤,缺少字段'帳戶'所需的值。 – Bhanukiran

+0

字段帳戶是必填字段,您需要將其導出。 –

+0

如果我嘗試導入帳戶字段,它表示重複的鍵值違反了唯一約束「account_account_code_company_uniq」 – Bhanukiran

0

這是錯誤:

Missing required value for the field 'Account'

對於進口發票,除了在擡頭級別的Account字段,它還需要在項目級別的Invoice Lines/Account。有效值爲account codeaccount name

0

導出您需要導入的值,然後缺失的值將消失。