Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4752 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
жовт. 22
3564
1
бер. 15
4324
1
бер. 15
35413
1
бер. 15
1403
3
лист. 22
17431