跳至内容
菜单
此问题已终结
1 回复
4690 查看

When try to delete a product in inventory, there is an error:


The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Stock Valuation Layer (stock.valuation.layer), Constraint: stock_valuation_layer_product_id_fkey


形象
丢弃
最佳答案

Hi,

The product is referenced in some another tables, that's why you are not able to delete the product. So if you really need to delete this product, you have to delete it from the places where it is referenced, as per the error message that you get the product is used in the table stock.valuation.layer , so you have to remove it first and then delete the product.


Or easily instead of deleting you can set Archive the record, which brings almost same functionality of delete.


Thanks

形象
丢弃
相关帖文 回复 查看 活动
2
10月 22
3488
1
3月 15
4284
1
3月 15
35282
1
3月 15
1403
3
11月 22
17347