diff --git a/dashboard.py b/dashboard.py index 2e486742e0..83eb03a4a1 100644 --- a/dashboard.py +++ b/dashboard.py @@ -12,7 +12,7 @@ class DashboardAction(ModelSQL, ModelView): sequence = fields.Integer('Sequence', required=True) act_window = fields.Many2One('ir.action.act_window', 'Action', required=True, ondelete='CASCADE', domain=[ - ('res_model', '!=', False), + ('res_model', '!=', None), ('res_model', '!=', ''), ]) diff --git a/ir.py b/ir.py index 9d64061760..cd310da867 100644 --- a/ir.py +++ b/ir.py @@ -22,7 +22,7 @@ class View(Model): model_data_ids = model_data_obj.search([ ('fs_id', '=', 'view_dashboard'), ('module', '=', 'dashboard'), - ('inherit', '=', False), + ('inherit', '=', None), ], limit=1) if not model_data_ids: return 0