Fixed unlink on ir.ui.view to handle a call with only and id (not a list)

This commit is contained in:
Bertrand Chenal committed 2008-01-10 21:15:08 +01:00
1 parent 6082567348
commit 4f6d9212ee
1 file changed
+3
+3
View File
@@ -43,6 +43,9 @@ class View(OSV):
]
def unlink(self, cursor, user, ids, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
views = self.browse(cursor, user, ids, context=context)
for view in views:
# Restart the cache