Skip to Content
Menu
This question has been flagged
2 Replies
1560 Views

I've read multiple threads on this topic, I'm just writing this in case others have the same problem and are left scratching their heads.

I am trying to delete a product and get the message:

Validation Error

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Stock Move (stock.move) Constraint: stock_move_product_id_fkey 


Now, I can say with 100% certainty that I have never "stock moved" this product, manufactured it, transferred it, built it, unbuilt it, scrapped it, sold it, bought it, or linked it to any other dependency nor have I tied it to any BIll of Materials. The stock move history for this product is completely blank. In fact, the stock move history for the entire database is completely blank. The only thing I ever did to this product was create it. I don't have any work centers set up either as this is a new database.

So I am unable to delete it and it's clearly a system problem., If anybody has a solution please share. I am going to Archive it and move on with life, but this post is for others who are confused as to why they can't delete a product are getting a stock move dependency error, but have never moved stock of the product or used it for anything at all ever.


Avatar
Discard

I think you made the right choice. I've come across the same issue and gave up pretty quickly on trying to figure out what was really going on.

Best Answer

I spent some time on this topic too and thank you for the conclusion

Avatar
Discard
Best Answer

I've had the same issue. The solution seems to be to set inventory quantity to 0 and then archive the product. Unless you have access to postgres database (which requires odoo.sh ), that is all you can do.

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
271
2
Jan 25
910
2
Jan 25
1473
0
Sep 24
661
0
Jun 24
651