无法从.csv文件导入发票数据

时间:2015-11-27 10:56:24

标签: csv openerp openerp-7 odoo-8

我在openerp 7中有一些发票数据,导出它并尝试通过csv格式导入odoo 8.Partner_id已定义,但我仍然收到此错误,

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

4 个答案:

答案 0 :(得分:0)

导入关系字段(比如说很多2个点指向'other.table')是首先导入'other.table'的值所必需的。否则你会得到错误。

答案 1 :(得分:0)

似乎您不包含partner_id字段,它是强制性的 ,因此您需要将其包含在CSV文件中

从CSV OpenERP - Importing and Exporting Data in CSV Format

导入的指南

答案 2 :(得分:0)

这是出错:

  

缺少字段'帐户'

所需的值

要导入发票,除了标题级别的Account字段外,它还需要在项目级别Invoice Lines / Account。有效值为account codeaccount name

答案 3 :(得分:0)

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