This question has been flagged
2 Replies
11653 Views

Hi

I am deleting the product from the warehouse in that I am getting the following error attached here.

Integrity Error

The operation cannot be completed, probably due to the following: - deletion: you may be trying to delete a record while other records still reference it - creation/update: a mandatory field is not correctly set

[object with reference: Stock Move - stock.move]

Avatar
Discard
Best Answer

This product having any entry like, Sale Order or Purchase Order. If want to delete, Cancel the Incoming Shipment or Delivery Order and then Cancel Accounting and Sale Order and Purchase Order.

Avatar
Discard
Best Answer

Make sure you have deleted all the places where this product have been used in the system. As suggested by Sridhar, check the stock move to see where this product appears MRP, SO, PO, etc and delete all the document or remove the product from them. Then try again. If you have already made a delivery order and received payment on the goods, then this might be a problem because you might not be able to reset this back to draft and thus might not be able to delete/remove the product. This is because you will mess with the accounting process.

Avatar
Discard