From 380813a1f2f5f12538aca12f9b1c026a9ec4f791 Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Thu, 11 Jul 2019 07:42:56 +0200 Subject: [PATCH] [FIX] delete with required field --- excel_import_export/wizard/import_xlsx_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/excel_import_export/wizard/import_xlsx_wizard.py b/excel_import_export/wizard/import_xlsx_wizard.py index 49be5c07a..b17d152a0 100644 --- a/excel_import_export/wizard/import_xlsx_wizard.py +++ b/excel_import_export/wizard/import_xlsx_wizard.py @@ -18,7 +18,7 @@ class ImportXLSXWizard(models.TransientModel): 'xlsx.template', string='Template', required=True, - ondelete='set null', + ondelete='cascade', domain=lambda self: self._context.get('template_domain', []), ) res_id = fields.Integer(