Fixed unlink on ir.ui.view to handle a call with only and id (not a list)
This commit is contained in:
1 parent
6082567348
commit
4f6d9212ee
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user