diff --git a/dashboard.py b/dashboard.py index 6982be94fe..9cd4a6295a 100644 --- a/dashboard.py +++ b/dashboard.py @@ -11,7 +11,10 @@ class DashboardAction(ModelSQL, ModelView): select=1) sequence = fields.Integer('Sequence') act_window = fields.Many2One('ir.action.act_window', 'Action', - required=True) + required=True, ondelete='CASCADE', domain=[ + ('res_model', '!=', False), + ('res_model', '!=', ''), + ]) def __init__(self): super(DashboardAction, self).__init__()