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

Unable to import invoice data from .csv file

我在 openerp 7 中有一些发票数据,将其导出并尝试通过 csv 在 odoo 8 中导入它 format.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

虽然导入关系字段(假设 many2one 指向 'other.table')需要先导入 'other.table' 的值。否则你会得到显示的错误。

您似乎没有包含在 partner_id 字段中,这是必填项 , 因此您需要将其包含在 CSV 文件中

从 CSV 导入指南OpenERP - Importing and Exporting Data in CSV Format

这是针对错误的:

Missing required value for the field 'Account'

对于导入发票,除了抬头级别的 Account 字段外,还需要项目级别的 Invoice Lines / Account。有效值为 account codeaccount name.

导出需要导入的值,缺失的值就会消失。