From 76433f448eb062fef09bea85e870154de5f10772 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Thu, 10 Sep 2020 16:49:36 +0200 Subject: [PATCH] [12.0][FIX] excel_import_export: external ids naming. Because of the naming given to the external ID's, Odoo interprets all this data as regular module data and when you update the module and those external ID's are not present in the module files, it tries to delete them. --- excel_import_export/models/xlsx_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/excel_import_export/models/xlsx_import.py b/excel_import_export/models/xlsx_import.py index 389a0a544..c80036f25 100644 --- a/excel_import_export/models/xlsx_import.py +++ b/excel_import_export/models/xlsx_import.py @@ -46,7 +46,7 @@ class XLSXImport(models.AbstractModel): xml_id = record.get_external_id() if not xml_id or (record.id in xml_id and xml_id[record.id] == ''): ModelData.create({'name': '%s_%s' % (record._table, record.id), - 'module': 'excel_import_export', + 'module': '__excel_import_export__', 'model': record._name, 'res_id': record.id, }) xml_id = record.get_external_id()