[FIX] base: avoid applying inherited view twice

Use the `|=` operator to deduplicate view ids.
This commit is contained in:
Christophe Simonis
2016-07-13 20:42:43 +02:00
parent 7930c3f86e
commit 9b7bc217a2
+1 -1
View File
@@ -406,7 +406,7 @@ actual arch.
('model_ids.module', 'in', tuple(self.pool._init_modules)),
])
views += self.search(conditions)
views |= self.search(conditions)
return [(view.arch, view.id)
for view in views.sudo()