简体   繁体   English

恢复Openerp数据库时出错

[英]Getting Error while restoring Openerp database

I was migrating my openerp database from one server to another. 我正在将openerp数据库从一台服务器迁移到另一台服务器。 And while restoring database on another server I am getting this error 在另一台服务器上恢复数据库时,我收到此错误

ALTER TABLE
ERROR:  insert or update on table "stock_move" violates foreign key constraint "stock_move_product_id_fkey"
DETAIL:  Key (product_id)=(2466) is not present in table "product_product".
ALTER TABLE

Please Suggest !! 请建议!!

Error itself suggest that you don't have Product_id = 2466 in the product_product table which is foreign key in stock_move . 错误本身表明product_product表中没有Product_id = 2466 ,这是stock_move中的外键。 so you first need to insert product with id = 2466 in product_product 所以你首先需要在product_product中插入id = 2466的产品

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM