diff --git a/addons/hr_timesheet/__init__.py b/addons/hr_timesheet/__init__.py index de5fd790751..c7f65263edb 100644 --- a/addons/hr_timesheet/__init__.py +++ b/addons/hr_timesheet/__init__.py @@ -44,3 +44,5 @@ def _uninstall_hook(cr, registry): project_ids = env['res.company'].search([('internal_project_id', '!=', False)]).mapped('internal_project_id') if project_ids: project_ids.write({'active': False}) + + env['ir.model.data'].search([('name', 'ilike', 'internal_project_default_stage')]).unlink()