我试图从odoo 10的库存调整中导入库存文件,但是我有错误。
字段“库存”的模糊规范,仅在第2行和第572行之间提供名称、外部id或数据库id之一。
xlsc文件是:
id _id/id名称line_id/product_id/id库存/产品库存/已检查的数量line_id/product_qty line_id/ location_id/id Inventory_reference line_id/product_uom_id/id
export.product_template_7060 stock.stock_inventory_3 stock.stock_location_stock初始库存stock.stock_location_components EZ铸1 stock.stock_location_components初始库存product.product_uom_unit
如果我删除了line_id/product_id/id,如果我删除了库存/产品,它就不会给出匹配的记录查找错误,它还会给出其他错误。
我的目标是从这次进口中更新库存产品的现货数量。
编辑:
我遵循了这个步骤,how to import QOH in odoo 8,这是我做过的相同的步骤,但是我删除了一些列,最后,最后的列是:
名称,line_id/积_qty,line_id/location_id/id,line_id/product_id/id/product_uom_id/id
但现在出现了其他错误
在表"stock_inventory_line“上插入或更新违反外键约束"stock_inventory_line_product_id_fkey”详细信息: key (product_id)=(7060)不在表"product_product“中。在第2行和第572行之间
我确信这个product_id是在我从库存产品中导出它的时候出现的。
如何解决这个错误?
请帮忙谢谢
发布于 2018-02-15 12:54:51
问题解决了
我跟随post how to import QOH in odoo 8,将产品上传到免费数据库,而不是演示数据库,然后所有错误消失,导入成功。
https://stackoverflow.com/questions/48726713
复制相似问题