Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
4390 Näkymät

I have imported multiple contacts and sub-contacts (e.g. invoice address, delivery address,..) into ODOO. 

I realised that my import had errors and need to delete certain invoice and delivery addresses. However, i can only do through lookup's in Excel. 

Is there any possibility to export the records in .csv and mark the External ID i want to delete with the import functionality ? 

Avatar
Hylkää

I made a custom field on the list view of contacts with created on date, then created custom filter for created on date and deleted them by multiselect checkbox. You need studio for this method. 

Paras vastaus

You can not delete the records while importing, but what you can do is do the lookup in Excel and add a column "Active" to your spreadsheet. For the incorrect/duplicate records set this to false. When you import the file these records will be archived in Odoo and you won't see them again unless you specifically search for archived contacts.

If you really want to delete the records, you could overwrite the name of the contact in Excel to, for example, "Delete 1", "Delete 2", etc. Import the file and then search in Odoo in Contacts app for "Delete", select all records in list view and click Action > Delete.

When you export the contacts from Odoo make sure you have selected "i want to update data" so that the first column contains the external ID of the record in Odoo. If you then import the data, the existing records will be overwritten.

Avatar
Hylkää
Paras vastaus

As a footnote to Mr. Mens' response, at least in Odoo Ent. 17, instead of True and False, you need to use 1 and 0.  His answer helped me!!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
marrask. 24
1187
1
marrask. 24
1424
1
lokak. 23
2337
3
jouluk. 23
20159
0
toukok. 21
7209