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(