|
@ -34,8 +34,10 @@ class CleanupPurgeWizardMenu(models.TransientModel): |
|
|
.search([('action', '!=', False)]): |
|
|
.search([('action', '!=', False)]): |
|
|
if menu.action.type != 'ir.actions.act_window': |
|
|
if menu.action.type != 'ir.actions.act_window': |
|
|
continue |
|
|
continue |
|
|
if menu.action.res_model not in self.env or\ |
|
|
|
|
|
menu.action.src_model not in self.env: |
|
|
|
|
|
|
|
|
if (menu.action.res_model and menu.action.res_model not in |
|
|
|
|
|
self.env) or \ |
|
|
|
|
|
(menu.action.src_model and menu.action.src_model not in |
|
|
|
|
|
self.env): |
|
|
res.append((0, 0, { |
|
|
res.append((0, 0, { |
|
|
'name': menu.complete_name, |
|
|
'name': menu.complete_name, |
|
|
'menu_id': menu.id, |
|
|
'menu_id': menu.id, |
|
|