Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1825 Tampilan

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
Buang

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.

Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 24
437
1
Apr 25
322
2
Jan 25
1106
2
Jan 25
1638
0
Sep 24
776