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

I made a mistake when importing a list of 1000 contacts using the import contacts tool. Unfortunately, I forgot to backup my database before importing the contacts. 

All entries have the tag "casa" and the value "CASA" for a custom column "x_imi_data_import_identifier".

Is it safe for me to execute the SQL query "DELETE FROM res_partner WHERE x_imi_data_import_identifier=`casa`;"?

If not, what other queries can I execute? Or is there a way to delete contacts based on tags?



  



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

This will helps you in future: https://www.scoop.it/t/learn-openerp

Câu trả lời hay nhất

In the List View use the standard filter to display all the records with "CASA" in your field "x_imi_data_import_identifier".  

Check this is what you want, then select all the records, and the "Delete" option from the Action menu.

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

Hello,

Rathar than deleting the contacts, can't you update the value in that field?

"UPDATE res_partner set x_imi_data_import_identifier=`CASA` where x_imi_data_import_identifier=`casa`;"

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 4 23
2486
1
thg 3 20
4353
2
thg 12 23
14664
0
thg 10 23
33
3
thg 10 23
788