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

Hi, I'm using odoo 12.0 & trying to delete "Contacts", "Users" and "Products" form my odoo application but I'm totally unable to delete them from admin panel options, getting this type of errors, kindly help if you know about this issue 

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: Product Wishlist - product.wishlist] 


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: Product Template - product.template]  
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thank you so much, @Ermin Trevisan and @Niyas Raphy, indeed due to referral integration it is impossible to delete any entity which has a reference in another table

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

As a amendment to Niyas' answer: such core entities in ERP systems have so many interdependencies with other objects, that it is almost impossible to delete them. Do archive them instead. And never use a productive database for testing or make a backup before.

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

Hi,

You are getting this error because those records that you are trying to delete is referenced in some another model that is why you are not able to delete it and getting warning like this. 

If you take the example of the product itself, the product you try to delete may be referenced in other tables in the database, like sale order or in product.wishlist  as shown in error message. So first you have to delete those records and then delete the product. 

You can try by creating a new product and click delete button, the record will get deleted instantly as it is not referenced in any other tables. If same product is added to a sale order, then you cannot delete the product unless you delete the sale order first.

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
1844
2
thg 12 23
1868
3
thg 11 21
5031
1
thg 8 21
3944
2
thg 5 16
11482