From 35c577a23938d8b489bc2240e41141ba3338ee0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Mar 2012 10:43:36 +0200 Subject: [PATCH] Replace wrong usage of False by None issue2512 --- dashboard.py | 2 +- ir.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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