Skip to Content
Menu
This question has been flagged
1715 Views

I have file excel products and have imported them into the inventory.

Now i want to import the number of products into all products, but when i import the error "insert or update on table" stock_inventory_line "violates foreign key constraint" stock_inventory_line_product_id_fkey "DETAIL: Key (product_id) = (134) is not present in table "product_product". "

the xls file to add products:

name

Barcode

Description

Internal Reference

Xoai
0001
Xoai loai I
TS001

Oi
0002
Oi loai I
TS002

the xls file to add qty:

name

line_ids/product_qty

line_ids/location_id/id

line_ids/product_id/id

line_ids/product_uom_id/id
Update
20
stock.stock_location_stock
__export__.product_template_134_6248f021
product.product_uom_unit

50
stock.stock_location_stock
__export__.product_template_135_34518b0f
product.product_uom_unit


How i fix it? Thanks


Avatar
Discard