From 7f64743268cb178033eebf6432f82d4c67946b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Jun 2010 20:10:32 +0200 Subject: [PATCH] Fix read override when ids is an int for issue1600 --- ir.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ir.py b/ir.py index 45450ce36f..ddd8e02deb 100644 --- a/ir.py +++ b/ir.py @@ -142,10 +142,10 @@ class View(Model): self.dashboard_id(cursor.dbname) if fields_names is None \ or 'arch' in fields_names: - if isinstance(ids, (int, long)) \ - and dashboard_id == ids: - res['arch'] = self.dashboard_view(cursor, user, res['arch'], - context=context) + if isinstance(ids, (int, long)): + if dashboard_id == ids: + res['arch'] = self.dashboard_view(cursor, user, + res['arch'], context=context) elif dashboard_id in ids: for res2 in res: if res2['id'] == dashboard_id: