Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1895 Lượt xem

I have two products with the same name, and I'm unable to remove one of them. Even after removing the associated sales orders, I receive the following error message: 


Validation Error

Close

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Sales Order Line (sale.order.line) Constraint: sale_order_line_product_id_fkey

 
Need your support and I am using Odoo v17 

Thanks, 

Dahir

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

When creating a sale order for a product, the corresponding stock move etc will occur. So deleting the sale order may not be enough to remove the relation.
The best solution would be to archive the product. You can see the archive button in the actions menu.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thank you for helping me.

Ảnh đại diện
Huỷ bỏ