Replace wrong usage of False by None

issue2512
This commit is contained in:
Cédric Krier committed 2012-03-27 10:43:36 +02:00
1 parent f154f7cb05
commit 35c577a239
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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', '!=', ''),
])
+1 -1
View File
@@ -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