[FIX] core: Validate custom views without an XML ID

Regression of fc91feda30

Closes #23646
Closes #23626
This commit is contained in:
Stefan Rijnhart
2018-04-23 10:27:40 +02:00
committed by Christophe Simonis
parent 3bee6ebb0a
commit 04b0d761e4
+1 -1
View File
@@ -1169,7 +1169,7 @@ class view(osv.osv):
cr.execute("""SELECT max(v.id)
FROM ir_ui_view v
LEFT JOIN ir_model_data md ON (md.model = 'ir.ui.view' AND md.res_id = v.id)
WHERE md.module NOT IN (SELECT name FROM ir_module_module)
WHERE md.module IN (SELECT name FROM ir_module_module) IS NOT TRUE
AND v.model = %s
AND v.active = true
GROUP BY coalesce(v.inherit_id, v.id)