2015-11-27 44 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

导出您需要导入的值,然后缺失的值将消失。