콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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]  
아바타
취소
작성자 베스트 답변

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

아바타
취소
베스트 답변

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.

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
1월 23
1909
2
12월 23
2049
3
11월 21
5098
1
8월 21
4075
2
5월 16
11623